Python Learning Roadmap (Scratch to Intermediate)
Phase 1: Basics (Day 1-3)
Topics:
- Variables & Data Types
- Input/Output
- Operators
- Conditional Statements
- Loops
Exercises:
- Check if a number is positive, negative, or zero
- Print a triangle of * with n rows using a loop
- Count vowels in a string
Phase 2: Core Concepts (Day 4-6)
Topics:
- Lists, Tuples, Sets, Dictionaries
- String operations
- Functions and scope
- Error handling (try/except)
- File reading/writing
Exercises:
- Find all even numbers in a list
- Read a file and print the number of lines
Python Learning Roadmap (Scratch to Intermediate)
- Write a function to find the factorial of a number
Phase 3: Intermediate Concepts (Day 7-10)
Topics:
- List Comprehension
- Lambda, map(), filter(), reduce()
- Modules and Packages
- Basic Object-Oriented Programming
- Working with JSON and CSV
Exercises:
- Student grade calculator using dictionaries
- Use map() and lambda to square a list of numbers
- Write and read data to/from a CSV file
Mini Projects
1. Simple Calculator
- Input: Two numbers and an operator
- Concepts: Functions and conditionals
2. Todo List App (Command-line)
- Add, remove, view tasks
- Store tasks in a file
Python Learning Roadmap (Scratch to Intermediate)
3. Contact Book
- Use OOP: Create, view, delete contacts
- Store in a .json file
4. File Organizer
- Automatically sort files in a folder by type
- Use os and shutil module