Welcome to your Python learning journey! This repository is designed to help you learn Python from scratch with a structured roadmap, lessons, exercises, and projects.
- Lesson 1: Syntax & Setup
- Lesson 2: Variables & Data Types
- Lesson 3: Input & Output
- Lesson 4: Operators (Arithmetic, Logical, Comparison)
- Lesson 5: If-Else Statements
- Lesson 6: Loops (for, while)
- Lesson 7: Break, Continue & Pass
- Lesson 8: Lists & List Methods
- Lesson 9: Tuples & Sets
- Lesson 10: Dictionaries
- Lesson 11: Functions & Parameters
- Lesson 12: Return Values
- Lesson 13: Variable Scope
- Lesson 14: Classes & Objects
- Lesson 15: Methods & Attributes
- Lesson 16: Inheritance & Polymorphism
- Lesson 17: Reading & Writing Files
- Lesson 18: Working with CSV & JSON
- Lesson 19: Using Built-in Libraries
python-learning/
├── lessons/ # Learning materials with code examples
│ ├── 01_basics/
│ ├── 02_control_flow/
│ ├── 03_data_structures/
│ ├── 04_functions/
│ ├── 05_oop/
│ └── 06_file_handling/
├── exercises/ # Practice problems to test your knowledge
│ ├── beginner/
│ ├── intermediate/
│ └── advanced/
├── projects/ # Real-world project implementations
│ ├── calculator/
│ ├── todo_app/
│ └── portfolio_projects/
└── README.md # This file
-
Clone the Repository
git clone https://github.com/umerfarooq7424/python-learning.git cd python-learning -
Follow the Learning Path
- Start with
lessons/01_basics/ - Progress through each phase in order
- Read the code examples and comments
- Start with
-
Practice with Exercises
- After each lesson, try the corresponding exercises
- Start with beginner-level exercises
- Progress to intermediate and advanced
-
Build Projects
- Apply your knowledge by building projects
- Start with small projects and work your way up
-
Track Your Progress
- Create branches for each phase
- Commit your completed exercises and projects
- Official Python Docs: https://docs.python.org/3/
- Codecademy Python Course: https://www.codecademy.com/learn/learn-python
- freeCodeCamp: https://www.freecodecamp.org/learn/python-for-beginners/
- Real Python: https://realpython.com/
- Book: "Python Crash Course" by Eric Matthes
- Interactive: https://www.learnpython.org/
-
Make sure you have Python installed (Python 3.8+)
python --version
-
Navigate to the
lessons/01_basics/folder -
Read the lesson files and run the code examples
-
Try the exercises in the
exercises/beginner/folder -
Don't hesitate to experiment and break things—that's how you learn!
- ✅ Code along with every example
- ✅ Don't just read—type the code yourself
- ✅ Experiment and modify the code
- ✅ Try to solve problems without looking at solutions first
- ✅ Join communities like r/learnprogramming or Python Discord
- ✅ Build your own projects after each phase
- Check the lesson files for explanations
- Review the code comments
- Try the exercises
- Search online for specific concepts
- Join Python learning communities
Happy Learning! 🚀 Good luck on your Python journey!