Python 3 Fundamentals
Write and run real Python 3 directly in your browser using WebAssembly (Pyodide). Master variables, control flow, functions, lists, dictionaries, comprehensions, and an auto-graded capstone.
What you'll build & master
- ✓ Write clean Python 3 code with variables, f-strings, and core data types
- ✓ Control program flow with if/elif/else, for loops, and range()
- ✓ Build reusable functions with default parameters and return values
- ✓ Transform data cleanly using lists, dictionaries, and comprehensions
- ✓ Pass an auto-graded Python capstone challenge in the browser
Course Syllabus
Python Basics
Functions & Data
Pythonic Patterns
- 18 min
Comprehensions & Built-In Functions
Write expressive Pythonic one-liners with list comprehensions, sum(), min(), max(), sorted(), and set deduplication.
- 28 min
Error Handling with try / except
Catch specific Python exceptions cleanly with try/except/else/finally and validate inputs by raising ValueError.
Data Structures
- 18 min
Tuples, Unpacking & Sets
Return multiple values cleanly with tuples and unpacking, and compute unique items, intersections, and differences using sets.
- 27 min
Strings, Methods & Slicing
Clean, split, join, and slice text effortlessly with .strip(), .split(), .join(), .replace(), and slice steps.
Object-Oriented Python
Standard Library
- 18 min
JSON & the Python Standard Library
Work with JSON APIs using json.dumps/loads, count frequencies effortlessly with collections.Counter, and format dates with datetime.
- 28 min
Sorting with key=lambda, zip() & any()/all()
Sort lists of dictionaries cleanly with key=lambda, pair sequences with zip(), and express checks clearly with any() and all().