A fast, structured Python foundation designed specifically for GenAI learners. This repository provides a comprehensive 6-day learning path that covers essential Python concepts with a focus on practical applications for Generative AI work.
Whether you're new to programming or looking to strengthen your Python skills for AI development, this roadmap will guide you through the fundamentals step by step.
- Go day by day - Follow the sequence from Day 1 to Day 6
- File order matters - Each day has three files in this order:
01_notes.md→ Start here to learn the concepts02_student_task.md→ Practice with hands-on tasks03_mini_project.md→ Build a complete project
- Practice examples - Run and modify the code examples as you learn
- Complete assignments - Work through all tasks before moving to the next day
- Clone or download this repository
- Ensure Python is installed on your system
- Start with
Day01 - Python Building Blocks/01_notes.md - Create Python files to practice the examples
- Complete the student tasks and mini projects
- Python 3.7 or higher recommended
- Check your version:
python --versionorpython3 --version
Most libraries are built-in, but you'll need to install:
pip install requestsThe following are built-in (no installation needed):
json- For JSON file operationscsv- For CSV file operationsmath,random,datetime- Standard library modules
- Create a Python file:
filename.py - Run from terminal:
or
python filename.py
python3 filename.py
- Run examples directly: Copy code from notes into a file and execute
| Day | Topic | Key Concepts |
|---|---|---|
| 1 | Python Building Blocks | Variables, Data types, f-strings, User input, Truthy & Falsy values, Operators |
| 2 | Collections & Conditions | if-else, List basics, Common list methods, Dictionaries, for loop |
| 3 | Loops & Functions | while loop, List comprehensions, Functions (def, parameters, return), Lambda functions |
| 4 | Working With Modules & Errors | Python modules (import, from-import), Exception handling (try/except/finally), HTTP Requests (GET & POST) |
| 5 | File Handling Essentials | Working with .txt, Working with .json, Working with .csv |
| 6 | OOP Fundamentals for GenAI | What is a class?, Objects, attributes, and methods, Constructors (__init__), GenAI-friendly examples |
Each day includes a mini project to reinforce learning:
- Day 1: User Info Collector CLI
- Day 2: Grocery Price Tracker
- Day 3: Quiz Creator
- Day 4: API Data Fetcher
- Day 5: CSV-based Student Score Manager
- Day 6: PromptTemplate Class System
python-for-genai/
│
├── Day01 - Python Building Blocks/
│ ├── 01_notes.md
│ ├── 02_student_task.md
│ └── 03_mini_project.md
│
├── Day02 - Collections & Conditions/
│ ├── 01_notes.md
│ ├── 02_student_task.md
│ └── 03_mini_project.md
│
├── Day03 - Loops & Functions/
│ ├── 01_notes.md
│ ├── 02_student_task.md
│ └── 03_mini_project.md
│
├── Day04 - Working With Modules & Errors/
│ ├── 01_notes.md
│ ├── 02_student_task.md
│ └── 03_mini_project.md
│
├── Day05 - File Handling Essentials/
│ ├── 01_notes.md
│ ├── 02_student_task.md
│ └── 03_mini_project.md
│
├── Day06 - OOP Fundamentals for GenAI/
│ ├── 01_notes.md
│ ├── 02_student_task.md
│ └── 03_mini_project.md
│
└── README.md
- Don't rush - Take your time with each concept
- Code along - Type out examples instead of just reading
- Experiment - Modify examples to see what happens
- Practice daily - Consistency beats intensity
- Ask questions - If something doesn't make sense, review the notes
- Complete projects - The mini projects are crucial for understanding
- Basic computer literacy
- Ability to install software
- Text editor or IDE (VS Code, PyCharm, or any text editor)
- Internet connection (for Day 4 API examples)
No prior programming experience required!
While this repository is self-contained, you may find these helpful:
- Python Official Documentation
- Python Tutorial
- Practice platforms: HackerRank, LeetCode, Codewars
Created by Chandra Sekhar.
Connect with me on LinkedIn.
This repository is provided for educational purposes. Feel free to use, modify, and share.
Ready to start your Python journey? Begin with Day 1! 🚀