Python Fundamentals
A complete, structured Python curriculum from absolute zero: 22 progressive lessons across 8 modules covering variables, loops, data structures, *args/lambda/type hints, file I/O, pytest, OOP, standard library, venv/pip, and a CLI capstone.
Course Syllabus
1. First Steps & Data Basics
0/3 done- 5 min
1. Variables, Types & Your First Python Code
Learn Python from absolute zero: print your first message, store information in variables like labeled containers, understand text vs numbers, and write clean sentences with f-strings.
- 4 min
2. Math Operators, User Input & Type Conversion
Learn everyday math operators in Python, ask users for input with input(), understand why input() always gives text, and convert text to numbers safely.
- 3 min
3. Strings Deep Dive: Slicing, Formatting & Cleaning Text
Work confidently with text in Python: index and slice characters, understand why strings cannot be mutated in place, clean messy user input, and validate text with built-in methods.
2. Making Decisions & Looping
0/4 done- 5 min
4. Making Decisions with if, elif, else & Logic
Teach your program to make choices step by step: understand True/False comparisons, why 4-space indentation matters, how if/elif/else picks one path, and how and/or/not work.
- 4 min
5. Repeating Work with for Loops & range()
Stop copying and pasting repetitive code: understand how for loops walk through items one by one, count with range(), add totals step by step, and track item numbers.
- 3 min
6. while Loops, break, continue & Infinite Loops
Learn when to use a while loop instead of a for loop, trace how while conditions stop, avoid accidental infinite loops, and control loops cleanly with break and continue.
- 3 min
7. Practice Lab 1: Logic & Loops Drills
Build real coding muscle memory (MOOC-style): solve 4 graduated hands-on Python challenges on strings, if/else, and loops with built-in auto-checks right in your browser.
3. Lists, Tuples, Sets & References
0/3 done- 3 min
8. Lists Deep Dive: Indexing, Slicing & Editing
Store multiple items together in a Python list: understand 0-based counting, negative indexes, slicing [start:stop], adding/removing items, and safely copying lists.
- 3 min
9. How Variables & Lists Share Memory (References)
Solve one of Python's biggest beginner mysteries: why changing `b` leaves `a` untouched for numbers and strings, yet changes `a` when both point to the same list.
- 3 min
10. Tuples, Sets & List Shortcuts (Comprehensions)
Learn when to lock data with tuples, unpack multiple variables in one line, remove duplicates automatically with sets, and transform lists cleanly.
4. Functions, Dictionaries & Data Drills
0/4 done- 3 min
11. Functions: Reusable Code, return & Scope
Stop repeating code: learn how to create your own commands with def, pass inputs into parameters, understand return vs print(), and see how local variables stay separate.
- 4 min
12. Flexible Functions: *args, **kwargs, Lambda & Type Hints
Go beyond basic def functions: accept unlimited arguments with *args and **kwargs, write concise lambda sorting keys, document functions with docstrings, and add readable type hints.
- 3 min
13. Dictionaries & Nested Data (Storing Named Fields)
Store structured records like user profiles and products using Python dictionaries, avoid missing-key crashes with .get(), count items step by step, and read lists of dictionaries.
- 3 min
14. Practice Lab 2: Functions & Data Drills
Practice writing clean, reusable Python functions that process lists, dictionaries, and text—verified automatically with built-in assert checks right in your browser.
5. Files, Errors & Testing
0/3 done- 3 min
15. Saving Data to Files: Text, CSV & JSON
Save and load persistent program data using 'with open(...)', read and write spreadsheet-style .csv files with Python's csv module, and store structured lists/dicts in .json.
- 3 min
16. Reading Errors & Handling Crashes (try / except)
Stop fearing red error messages: learn how to read a Python traceback from the bottom up, prevent crashes with try/except, and use Python's built-in modules.
- 3 min
17. Testing Your Code (assert & pytest)
Learn how professional developers prove their code works: write quick automated checks with assert, build test files for pytest, and catch edge-case bugs early.
6. Object-Oriented Programming (OOP)
0/2 done- 3 min
18. Classes & Objects (OOP Explained Simply)
Understand Object-Oriented Programming without confusing jargon: learn how a class works like a blueprint, what __init__ and self actually mean, and when to use objects.
- 3 min
19. OOP Part 2: Inheritance & Real-World Class Design
Extend existing classes without copying code using inheritance and super(), override methods cleanly, and combine objects together (like a ShoppingCart holding Products).
7. Modules, Standard Library & Packages
0/2 done- 4 min
20. Modules, Standard Library & __name__ == '__main__'
Organize multi-file Python codebases cleanly: master import styles, explore Python's built-in Standard Library (math, random, datetime, pathlib, Counter), and understand if __name__ == '__main__':.
- 3 min
21. Virtual Environments (venv) & Installing Packages (pip)
Keep Python projects organized with virtual environments (venv), install free community libraries using pip, and share dependencies cleanly via requirements.txt.
Earn Your Python Fundamentals Certificate
Take the final assessment once you finish the lessons. Score 70% or higher to unlock a printable completion certificate.
Quick Reference
Python Quick Reference Cheat Sheet
Everyday Python 3 cheat sheet: variables, f-strings, lists & slicing, copying, dictionaries, comprehensions, functions, CSV/JSON files, pytest, venv, and OOP.
What Next?
Explore Career Learning Roadmaps
See how this course connects with Python, SQL, Git, and Web Development paths.