Python Foundations · Complete learning route
Python: From 0 to Infinity
Text, sequences, unique values and key–value records. Learn these core built-in types slowly and deeply, with copyable code, example output, exercises and mini-projects.
Follow this learning order
Strings →
Text, slicing, immutability, formatting, Unicode, regular expressions and efficient text processing.
Levels 0–10 · Practice and projectChapter 2 · 60–80 minutesLists →
Indexed mutable sequences, slicing, list methods, comprehensions, sorting, stacks and complexity.
Levels 0–10 · Practice and projectChapter 3 · 45–65 minutesTuples →
Immutable records, packing, unpacking, multiple return values, hashability and named tuples.
Levels 0–10 · Practice and projectChapter 4 · 55–75 minutesSets →
Unique values, union/intersection/difference, subset tests, set comprehensions and frozenset.
Levels 0–10 · Practice and projectChapter 5 · 65–90 minutesDictionaries →
Key-value records, lookups, edits, iteration, nesting, comprehensions and counting.
Levels 0–10 · Practice and projectLearning outcomes
After this route, you will know when to use each built-in data type, how to avoid common mutability and hashing mistakes, and how to turn small pieces of code into practical applications.
Already know the basics? Jump directly to the advanced levels in each lesson, or continue with Pandas, NumPy or the Python list-sorting lesson.
Programmer's Picnic · Developed and maintained by Champak Roy.