This repository combines Python Fundamentals exercises from Part 1 through Part 12 into a single, comprehensive learning resource.
This repository is organized into 12 parts, each covering different fundamental concepts in Python programming:
Part 1 - Types, Operators, Strings, and Comments
- Basic data types (int, float, bool, str)
- Arithmetic operators
- String manipulation
- Variables and assignments
- Basic I/O
Part 2 - Control Flow and Conditionals
- If statements
- Boolean logic and comparison operators
- Conditional execution
Part 3 - Loops and Iteration
- While loops
- For loops
- Loop control (break, continue)
Part 4 - Functions
- Defining and calling functions
- Parameters and return values
- Variable scope
Part 5 - Lists
- Creating and manipulating lists
- List methods and slicing
- List comprehensions
Part 6 - Dictionaries and Tuples
- Dictionary operations
- Tuple properties
- Working with key-value pairs
Part 7 - Sets and Advanced Data Structures
- Set operations
- Choosing appropriate data structures
- Set comprehensions
Part 8 - File I/O
- Reading and writing files
- File modes and context managers
- Working with different file formats
Part 9 - Error Handling and Exceptions
- Try-except blocks
- Exception types
- Custom exceptions
Part 10 - Object-Oriented Programming Basics
- Classes and objects
- Attributes and methods
- Constructors and inheritance
Part 11 - Advanced OOP
- Magic methods
- Polymorphism
- Abstract classes and interfaces
Part 12 - Modules and Packages
- Creating and importing modules
- Working with packages
- Using the Python standard library
Each part is contained in its own directory with a README.md file containing exercises and instructions. Start with Part 1 and work your way through sequentially, as later parts build upon concepts from earlier ones.
- Python 3.6 or higher installed on your system
- A text editor or IDE (VS Code, PyCharm, etc.)
- Basic familiarity with using the command line/terminal
- Navigate to each Part directory in order (Part1, Part2, etc.)
- Read the README.md file in each directory
- Complete the exercises as instructed
- Practice, experiment, and build confidence with Python!
This is a learning resource. Feel free to suggest improvements or additional exercises through pull requests.
Educational resource for learning Python fundamentals.