Master Python
A child-friendly path from the very first print statement to everyday professional Python - collections, functions, files, packages, OOP, generators, decorators, testing, and safe automation - paired with real broken-code labs.
Modules
- What Python Is and Your First Program - Meet the interpreter, REPL, scripts, print, comments, and indentation.
- Variables, Data Types, and Operators - Store values, inspect their types, convert input, and calculate safely.
- Strings in Depth - Index, slice, format, search, split, join, and clean text.
- Lists and Tuples - Work with ordered collections and understand mutability.
- Dictionaries and Sets - Model key-value data and unique membership.
- Control Flow - Make decisions and repeat work with clear loops.
- Functions - Design reusable units with clear inputs, outputs, scope, and documentation.
- Comprehensions and Functional Basics - Transform data clearly with comprehensions, lambdas, map, filter, and key functions.
- Error Handling - Catch expected failures, preserve cleanup, and define meaningful exceptions.
- Files and the Filesystem - Read, write, navigate, and serialize files safely.
- Modules, Packages, and Project Environments - Structure multi-file projects and isolate dependencies.
- Object-Oriented Programming Part 1 - Build classes, instances, attributes, and methods.
- Object-Oriented Programming Part 2 - Use inheritance, polymorphism, dunder methods, and composition thoughtfully.
- Iterators and Generators - Understand lazy iteration and build memory-efficient pipelines.
- Decorators and Context Managers - Wrap behavior and guarantee resource cleanup.
- Dates, Regex, and the Standard Library - Use batteries-included tools for time, patterns, processes, collections, and the runtime.
- Testing Your Code - Write focused tests, arrange fixtures, and diagnose failures.
- Automating Real Tasks - Build safe command-line automation that ties the language together.