Python Programming
The friendliest way to fall in love with code.
Introduction to Python
Meet the language that reads like plain English — then watch your very first program run, line by line.
Python Syntax and Data Types
Every value carries a type — meet ints, floats, strings and booleans working together in one tiny program.
Operators
Arithmetic, comparison and logic — watch operators combine values and learn which one computes first.
Control Flow (if-else)
Teach your program to choose — watch if, elif and else route execution down exactly one branch at a time.
Loops
Loops do the boring work — trace for and while as they count, accumulate and repeat without copy-paste.
Functions and Lambda
Package logic into functions and lambdas — watch arguments flow in and return values travel back out.
Lists and Tuples
Grow lists with append, slice them any way you like — and meet tuples, the ordered collections that never change.
Dictionaries and Sets
Store data under meaningful keys and collect unique items — the two structures Python reaches for daily.
String Manipulation
Slice, clean and combine text with string methods and f-strings — Python makes words easy to program.
Error Handling and Exceptions
Turn crashes into handled moments — wrap risky code in try, catch exceptions, and clean up with finally.
Modules and Packages
Split code into files you can reuse: import math and random, then write a module of your own and import it back.
Comprehensions
Replace clunky loops with one readable line — build lists and dicts with comprehensions and watch them assemble.
Object-Oriented Programming
Meet classes, objects, __init__ and self — build your first object step by step and see where its data lives.
Inheritance
Let classes stand on each other: subclasses inherit everything, super() reuses the setup, overrides take over.
Polymorphism
One loop, many shapes: duck typing and method overriding let different objects all answer the same call.
Decorators and Generators
Wrap functions with @decorators, pause them with yield — two Python superpowers you will use constantly.
Working with Dates and Times
Build fixed dates, shift them with timedelta and format them for humans — calendar math without the clock.
Regular Expressions
Hunt text by pattern instead of by word: findall, search and the tiny symbols that match digits and wildcards.
Multithreading and Concurrency
Start real threads, tame them with join, and watch two call stacks share one interpreter step by step.
File Handling
Open, write and read text files — and see why the with statement closes every file for you, every time.