A comprehensive Python course from basics to object-oriented programming, with 35 practical files organized by topic.
This repository contains a complete Python learning path with hands-on examples, practice problems, and detailed explanations. Each file builds upon previous concepts, progressing from basic syntax to advanced OOP principles.
Total Files: 35 Python files + 1 summary file
Topics Covered: 7 major areas
Practice Problems: 200+ exercises
Fundamentals of Python programming - input/output, strings, conditionals, and lists
- 1.py - Input & Comparison Operators
- 2.py - Strings & String Methods
- 3.py - Conditionals (if/elif/else)
- 4.py - Lists & List Slicing
- 5.py - List Operations & Methods
Working with Python's built-in data structures - tuples, dictionaries, and sets
- 6.py - Tuples & Tuple Methods
- 7.py - Lists from User Input
- 8.py - List & Tuple Practice
- 9.py - Dictionaries & Dictionary Methods
- 10.py - Sets & Set Operations
Control flow and iteration basics with while and for loops
- 11.py - Advanced Set Operations
- 12.py - Dictionary Operations
- 13.py - While Loops
- 14.py - Number Sequences
- 15.py - Multiplication Tables
Advanced iteration techniques, searching, and control statements
- 16.py - Iterating Through Lists
- 17.py - Searching in Tuples
- 18.py - Break & Continue Statements
- 19.py - Odd/Even Number Filtering
- 20.py - For Loop Applications
Creating reusable code with functions and working with ranges
- 21.py - Interactive Input & Search
- 22.py - Range Function & Applications
- 23.py - Factorial Calculations
- 24.py - Pattern Printing
- 25.py - Number Guessing Game
Reading from and writing to files, recursion, and data processing
- 26.py - Functions - Practical Applications
- 27.py - Recursion
- 28.py - File I/O - Reading & Writing
- 29.py - File I/O - Advanced Operations
- 30.py - File I/O - Processing CSV Data
Object-oriented programming concepts - classes, objects, inheritance, and polymorphism
- 31.py - Classes & Objects (Student Class)
- 32.py - Bank Account Class with Methods
- 33.py - Operator Overloading (Polymorphism)
- 34.py - Geometric Shapes (Circle Class)
- 35.py - Inheritance & Advanced OOP Concepts
Start here if you're new to programming. Learn variables, data types, basic operations, and essential data structures.
Key Concepts:
- Variables and data types
- String manipulation
- Lists, tuples, dictionaries, sets
- Basic input/output
Build on basics with control flow and loops. Learn to make decisions and repeat actions efficiently.
Key Concepts:
- Conditional statements
- While and for loops
- Break and continue
- List iteration
- Searching algorithms
Master functions, recursion, and file handling. Write reusable code and work with external data.
Key Concepts:
- Function definition and calls
- Recursion
- File I/O operations
- CSV data processing
- Range function
Learn object-oriented programming principles to write professional, scalable code.
Key Concepts:
- Classes and objects
- Constructors and methods
- Inheritance
- Polymorphism
- Operator overloading
| Topic | Files | Description | 
|---|---|---|
| Input/Output | 1, 7, 21 | User input, print statements | 
| Strings | 2 | String methods, slicing, formatting | 
| Conditionals | 3 | if, elif, else statements | 
| Lists | 4, 5, 7, 8, 16 | List operations, methods, iteration | 
| Tuples | 6, 8, 17 | Immutable sequences, tuple methods | 
| Dictionaries | 9, 12 | Key-value pairs, dictionary methods | 
| Sets | 10, 11 | Unique elements, set operations | 
| While Loops | 13, 14, 15 | While loop syntax, applications | 
| For Loops | 16, 18, 19, 20, 22 | For loop syntax, range function | 
| Break/Continue | 18 | Loop control statements | 
| Functions | 26, 27 | Function definition, parameters, return values | 
| Recursion | 27 | Recursive functions, base cases | 
| File I/O | 28, 29, 30 | Reading/writing files, CSV processing | 
| OOP Basics | 31, 32 | Classes, objects, methods | 
| OOP Advanced | 33, 34, 35 | Inheritance, polymorphism, operator overloading | 
- Python 3.x installed on your system
- Text editor or IDE (VS Code, PyCharm, etc.)
- Sequential Learning: Start from file 1 and work your way through sequentially
- Practice Problems: Each file contains multiple practice exercises
- Hands-on Coding: Type out the code yourself - don't just read it
- Experiment: Modify the code and see what happens
- Summary Reference: Check summary.pyfor quick overview of all original code
# Navigate to the appropriate folder
cd 01_Basics
# Run a Python file
python 1.py- summary.py - Contains all original code from files 1-35 with explanatory comments
- Clean, well-commented code in every file
- Practice problems with varying difficulty levels
- Concept summaries at the end of each file
- Progressive Learning: Each file builds on previous knowledge
- Practical Examples: Real-world applications of concepts
- 200+ Practice Problems: Reinforce learning with hands-on exercises
- Detailed Comments: Every line explained for beginners
- Concept Summaries: Key takeaways in each file
- Bug-Free Code: All code tested and verified
- Organized Structure: 7 topic-based folders for easy navigation
This project is licensed under the MIT License - see the LICENSE file for details.
This course material is free to use, modify, and distribute for educational and commercial purposes.
Ritesh Chauhan
Feel free to fork this repository and add your own examples or improvements!
If you have questions or suggestions, please open an issue in the repository.
Happy Learning! π