A curated list of free resources to learn Python from scratch. I cracked Google at the age of 20 using these resources, and they can help you too.
1. Harvard CS50's Introduction to Programming with Python (CS50P)
Best for: complete beginners who want a structured course.
๐บ Course website ยท YouTube playlist
What you'll learn:
- Functions and variables
- Conditionals and loops
- Exceptions and testing
- File I/O
- Object-oriented programming
- Regular expressions
- Third-party libraries
2. 10 Important Python Concepts in 20 Minutes
Best for: a quick refresher or crash course.
๐บ Watch here
Topics covered: variables, data types, type annotations, functions, classes, initializers, methods and dunder methods.
3. 30 Days of Python
Best for: hands-on learners who prefer coding every day.
๐ป GitHub repository
Includes: daily exercises, coding challenges, projects, data structures, object-oriented programming, modules and packages, and APIs and web scraping.
Suggested learning order
| When | What |
|---|---|
| Weeks 1โ2 | Complete CS50P Weeks 0โ2 |
| Week 3 | Watch 10 Important Python Concepts in 20 Minutes |
| Weeks 4โ6 | Finish the remaining CS50P lectures |
| Week 7+ | Work through 30 Days of Python and build mini-projects |
Stuck? Build something tiny
If you get stuck while learning Python, try building small projects:
- To-do list app
- Expense tracker
- Habit tracker
- Weather app
- Resume parser
- AI chatbot
If you liked this, follow @its.anu.sharma for more.
Preparing for interviews?
The AI Interview Prep Prompt Pack has 39 copy-paste prompts that turn AI into your personal interviewer, for coding, system design, behavioural and offer rounds.
Get the Prompt Pack: $19