Welcome to the Learn Python repository! This project is a hands-on, example-driven guide designed to help beginners learn Python from the ground up.
🚀 Start coding. Start learning. One folder at a time.
# | Topic | Description |
---|---|---|
01 | Hello World | Your first Python program |
02 | Variables and Data Types | Strings, numbers, booleans, and more |
03 | Conditionals | if , elif , else |
04 | Loops | for and while loops |
05 | Functions | Defining and calling functions |
06 | Lists & Tuples | Collections in Python |
07 | Dictionaries & Sets | Key-value pairs and unique elements |
08 | String Operations | Manipulating text |
09 | Exception Handling | Try/except blocks |
10 | File I/O | Reading from and writing to files |
11 | Modules & Packages | Organizing code into reusable modules |
12 | OOP Basics | Classes, objects, inheritance |
13 | List Comprehensions | One-liners for list generation |
14 | Lambda & Higher-Order Funcs | lambda , map , filter , reduce |
15 | Decorators | Function wrappers |
16 | JSON Handling | Reading and writing JSON |
17 | HTTP Requests | Calling REST APIs using requests |
18 | Virtual Environment | Isolating project dependencies |
19 | Unit Testing | Writing tests with unittest |
20 | CLI Tool | Create a Python CLI using argparse |
- Python 3.8+
- pip (Python package installer)
cd 03_conditionals
python if_else.py
Create a virtual environment:
python -m venv venv
source venv/bin/activate # macOS/Linux
venv\Scripts\activate # Windows
pip install -r requirements.txt
python 19_unit_testing/test_sample.py
python 20_cli_tool/cli_greet.py Amit --age 30
Pull requests are welcome! Feel free to:
- Add new examples
- Improve existing code
- Add docstrings or comments
This project is licensed under the MIT License.
Amit – GitHub
⭐ Star this repo if you find it helpful!