Python
Full course · 21 lessonsThe most versatile language in the ecosystem. Python powers data science, machine learning, backend systems, automation, and scripting. These are the definitive free resources — vetted, current, and complete.
Getting Started with Python
Install Python, set up a dev environment, understand the interpreter and REPL, and write your first program.
Variables, Types, and Basic Operations
Python's dynamic type system, primitive types, variables, numbers, strings, operators, and type conversion.
Control Flow: Conditionals and Loops
if/elif/else, for loops, while loops, match statements, and loop control with break/continue/else clauses.
Functions and Scope
Function definitions, parameters, return values, scope rules, lambda expressions, and annotations.
Lists, Tuples, and Sequences
List operations, comprehensions, tuples, slicing, and the sequence protocol.
Dictionaries and Sets
Dictionary operations, set theory, hash tables, and when to use each collection type.
Strings, Formatting, and Text Processing
String methods, f-strings, formatting, Unicode encoding, and text processing patterns.
File I/O and Exception Handling
Reading/writing files, context managers, try/except/finally, custom exceptions, and data persistence.
Modules, Packages, and Virtual Environments
Import system, module creation, packages, virtual environments, and pip dependency management.
Classes and Object-Oriented Programming
Class definitions, inheritance, polymorphism, special methods, dataclasses, and OOP design patterns.
Generators, Iterators, and Context Managers
Iterator protocol, generators with yield, generator expressions, itertools, and context managers.
Decorators and Closures
Closures, function decorators, decorator factories, class decorators, and practical decorator patterns.
Advanced Functions: Lambdas and Functional Tools
Lambda functions, map/filter/reduce, functools, itertools, and functional programming patterns.
Regular Expressions
Regex syntax, pattern compilation, groups, lookahead/lookbehind, and text processing with the re module.
Testing and Debugging
Unit testing with unittest and pytest, debugging with pdb, and logging best practices.
Working with JSON, CSV, and APIs
JSON handling, CSV processing, REST APIs with requests, data validation, and pipeline patterns.
Concurrency with Threading and Multiprocessing
Threading, thread safety, the GIL, multiprocessing, and choosing the right concurrency model.
Async/Await and Asyncio
Coroutines, async/await, event loop, tasks, futures, and async I/O with asyncio and aiohttp.
Pythonic Patterns and Idioms
EAFP vs LBYL, duck typing, property decorators, descriptors, context manager patterns, and SOLID in Python.
Metaprogramming and Advanced Features
Metaclasses, class decorators, __init_subclass__, __set_name__, and dynamic attribute access.
Performance: Profiling, Optimization, and C Extensions
Profiling with cProfile, optimizing hot paths, using Cython, Numba, and when to drop to C.
Free Books
Automate the Boring Stuff with Python (3rd Ed.)
The premier beginner resource for learning practical scripting to automate everyday tasks.
Think Python (3rd Edition)
Completely redesigned for modern learning. Runs in Jupyter notebooks — read, execute code, and work through exercises directly in the browser.
Dive Into Python 3
A free book for experienced programmers to learn Python 3 quickly. Covers native datatypes, comprehensions, closures, generators, and testing.
Official Documentation
The Python Tutorial
Curated by the core developers and PSF. The definitive resource for understanding the language syntax, standard library, and data structures.
Python Language Reference
The complete reference for Python syntax, lexical analysis, data model, execution model, and import system.
Python Standard Library
The built-in library reference covering everything from string operations to networking, threading, and web frameworks.
Interactive Courses
Video Courses
Practice & Challenges
Exercism — Python Track
100% free platform with 146 coding exercises across 17 concepts. Includes automated code analysis and human mentor feedback.
Codewars
Master Python by solving bite-sized community-crafted challenges and comparing solutions with other developers.
HackerRank — Python Track
Domain-specific challenges from basic I/O to advanced data structures and interview preparation.
Reference & Cheatsheets
News & Updates
Community
Reddit r/learnpython
The largest community of Python learners and educators.
Stack Overflow — Python Tag
The definitive Q&A forum for Python questions — from beginner syntax to advanced metaprogramming patterns.
Python Discord
A large, active Python community on Discord with channels for learning, projects, and career advice.

