Choose Your Path
Each path is a structured curriculum — follow it top to bottom.
Complete Beginner
Learn Python from scratch. Variables, loops, functions, data structures. Build real projects by week 4.
1. Python.org official tutorial
2. Automate the Boring Stuff (free online book)
3. freeCodeCamp Python for Beginners (YouTube, 4.5 hrs)
4. Codecademy Python 3 (free tier)
5. Practice: Codewars (8kyu → 6kyu problems)
Data Science & Analytics
NumPy, Pandas, Matplotlib, SQL, statistics. Go from spreadsheets to Python-powered data analysis.
1. Kaggle Learn (free micro-courses)
2. Python for Data Analysis (Wes McKinney, free online)
3. StatQuest YouTube (statistics explained clearly)
4. Mode Analytics SQL Tutorial
5. Practice: Kaggle Competitions (beginner tier)
AI & Machine Learning
Scikit-learn, TensorFlow, PyTorch, transformers. Build models that learn, predict, and generate.
1. fast.ai (Practical Deep Learning, free course)
2. Andrew Ng's ML Specialization (Coursera, audit free)
3. Hugging Face NLP Course (free)
4. 3Blue1Brown Neural Networks (YouTube)
5. Practice: Build a chatbot with Ollama + LangChain
Web Development
Django, Flask, FastAPI. Build web apps, REST APIs, and deploy to the cloud.
1. Django Girls Tutorial (free, excellent)
2. Flask Mega-Tutorial (Miguel Grinberg, free)
3. FastAPI Documentation (best API docs ever written)
4. CS50 Web Programming (Harvard, free on YouTube)
5. Practice: Build a personal portfolio site
Automation & Scripting
Automate files, emails, spreadsheets, web scraping, and system tasks. Python as your personal assistant.
1. Automate the Boring Stuff with Python (free book)
2. Real Python tutorials (free articles)
3. Beautiful Soup docs (web scraping)
4. Selenium docs (browser automation)
5. Practice: Automate your own daily tasks
Scientific Computing
SciPy, Cirq (quantum), BioPython, RDKit, Astropy. Python powers modern science.
1. SciPy Lecture Notes (scipy-lectures.org)
2. Cirq Tutorials (quantumai.google/cirq)
3. BioPython Tutorial (biopython.org)
4. MIT OCW Computational Science (free)
5. Practice: Simulate a quantum circuit
Python Cheat Sheet — The Essentials
Variables & Types
name = "Riket" # str
age = 30 # int
pi = 3.14 # float
is_cool = True # bool
items = [1, 2, 3] # list
data = {"k": "v"} # dictConditionals
if age >= 18:
print("Adult")
elif age >= 13:
print("Teen")
else:
print("Child")Loops
for item in items:
print(item)
while count < 10:
count += 1
# List comprehension
squares = [x**2 for x in range(10)]Functions
def greet(name, loud=False):
msg = f"Hello, {name}!"
if loud:
msg = msg.upper()
return msg
greet("World", loud=True)File I/O
with open("file.txt") as f:
content = f.read()
with open("out.txt", "w") as f:
f.write("Hello!")Error Handling
try:
result = 10 / 0
except ZeroDivisionError:
print("Can't divide by zero")
finally:
print("Done")100% Free Resources
Every link here is free. No hidden paywalls.
Automate the Boring Stuff
Al Sweigart's classic — free to read online. Best first Python book.
CS50P (Harvard)
Harvard's intro to Python. Free on YouTube and edX. Excellent teaching.
Kaggle Learn
Free micro-courses: Python, Pandas, ML, SQL. Hands-on in browser.
freeCodeCamp Python
4.5-hour complete Python course on YouTube. Zero to competent.
Codewars
Coding challenges ranked by difficulty. Start at 8kyu, work up.
Real Python
High-quality tutorials on every Python topic. Most articles are free.
Python Official Docs
The source of truth. The tutorial section is actually very readable.
Ollama + Python
Run AI models locally with Python. pip install ollama. Free, private, powerful.