mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-09-24 15:00:31 +08:00
chore: sync content to repo (#9408)
Co-authored-by: kamranahmedse <4921183+kamranahmedse@users.noreply.github.com>
This commit is contained in:
co-authored by
kamranahmedse
parent
3c0a1d78de
commit
8736519a73
@@ -0,0 +1,12 @@
|
||||
# File Handling in Python
|
||||
|
||||
File handling in Python involves reading data from and writing data to files. It allows programs to interact with files stored on a computer's storage. You can open files in different modes like read, write, or append, and then perform operations like reading the entire file content, reading line by line, or writing new data. A common use case is working with structured data, and Python provides built-in modules like `json` to easily read and write data in JSON format, which is frequently used for data exchange.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@Pyhton File open](https://www.w3schools.com/python/python_file_handling.asp)
|
||||
- [@article@Working With Files in Python](https://realpython.com/working-with-files-in-python/)
|
||||
- [@article@Python JSON](https://www.w3schools.com/python/python_json.asp)
|
||||
- [@article@Working With JSON Data in Python](https://realpython.com/python-json/)
|
||||
- [@video@Python File Handling for Beginners](https://www.youtube.com/watch?v=BRrem1k3904)
|
||||
- [@video@Python Tutorial: Working with JSON Data using the json Module](https://www.youtube.com/watch?v=9N6a-VLBa2I)
|
||||
@@ -1,6 +1,6 @@
|
||||
# Inheritance
|
||||
|
||||
Inheritance is a fundamental concept in object-oriented programming (OOP) that allows one class to inherit the properties and behavior of another class.
|
||||
Inheritance is a fundamental concept in object-oriented programming where a new class (the child class or subclass) is derived from an existing class (the parent class or superclass). The child class inherits attributes and methods from the parent class, allowing for code reuse and the creation of hierarchical relationships between classes. This promotes a more organized and maintainable codebase by establishing a clear structure and reducing redundancy.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
# Lists, Tuples, Sets, and Dictionaries
|
||||
# Lists in Python
|
||||
|
||||
**Lists:** A list is just like dynamic sized arrays, declared in other languages (vector in C++ and ArrayList in Java). Lists need not be homogeneous always which makes it the most powerful tool in Python.
|
||||
|
||||
**Tuple:** A Tuple is a collection of Python objects separated by commas. In some ways, a tuple is similar to a list in terms of indexing, nested objects, and repetition but a tuple is immutable, unlike lists that are mutable.
|
||||
|
||||
**Set:** A Set is an unordered collection data type that is iterable, mutable, and has no duplicate elements. Python’s set class represents the mathematical notion of a set.
|
||||
|
||||
**Dictionary:** In python, Dictionary is an ordered (since Py 3.7) \[unordered (Py 3.6 & prior)\] collection of data values, used to store data values like a map, which, unlike other Data Types that hold only a single value as an element, Dictionary holds key:value pair. Key-value is provided in the dictionary to make it more optimized.
|
||||
Lists are fundamental data structures in Python used to store an ordered collection of items. These items can be of different data types (numbers, strings, or even other lists), and lists are mutable, meaning you can change their contents after they are created by adding, removing, or modifying elements. They are defined using square brackets `[]` and elements are separated by commas.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# PDM
|
||||
|
||||
PDM is a modern Python package manager that supports PEP 582, which allows packages to be installed in a `__pypackages__` directory instead of the traditional `site-packages` directory. It aims to provide a streamlined and improved experience for managing dependencies, building, and publishing Python projects. PDM also includes features like dependency resolution, virtual environment management, and project scaffolding.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@pdm](https://pdm-project.org/en/latest/)
|
||||
- [@opensource@pdm](https://github.com/pdm-project/pdm)
|
||||
- [@article@Introduction to PDM: A Python Project and Dependency Manager](https://betterstack.com/community/guides/scaling-python/pdm-explained/)
|
||||
@@ -0,0 +1,10 @@
|
||||
# Working with Strings
|
||||
|
||||
Strings in Python are sequences of characters used to represent text. You can create them by enclosing characters within single quotes, double quotes, or triple quotes. Once created, strings are immutable, meaning their values cannot be changed directly. Common operations include accessing individual characters using indexing, slicing to extract substrings, concatenating strings using the `+` operator, and using built-in methods to manipulate and format the text they contain.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@string — Common string operations](https://docs.python.org/3/library/string.html)
|
||||
- [@article@Python Strings](https://www.w3schools.com/python/python_strings.asp)
|
||||
- [@video@String methods in Python are easy 〰️](https://www.youtube.com/watch?v=tb6EYiHtcXU)
|
||||
- [@video@Python Tutorial for Beginners 2: Strings - Working with Textual Data](https://www.youtube.com/watch?v=k9TUPpGqYTo)
|
||||
Reference in New Issue
Block a user