A complete Python installation guide — setup on Windows, macOS, Linux (Ubuntu & Fedora), verifying your installation, configuring PATH, and choosing the right IDE to start being productive.
A complete guide to Python's core syntax — indentation as block structure, keywords, statements and expressions, input/output, naming conventions, and the most common syntax error patterns.
A complete guide to comments in Python — single-line comments, multi-line comments, docstrings for functions/classes/modules, Google Style and NumPy Style formats, and the principles of writing comments that are actually useful.
A complete guide to variables in Python — assignment and dynamic typing, naming rules, multiple assignment and unpacking, variable scope (local/global/nonlocal), type hints, and common anti-patterns.
A complete guide to constants in Python — the UPPER_SNAKE_CASE convention, Final from typing, Enum for groups of related constants, NamedTuple, centralized config modules, and the magic number anti-pattern to avoid.
A complete guide to Python data types — int, float, str, bool, NoneType, list, tuple, dict, set, mutable vs immutable, type conversion, float precision pitfalls, and how to choose the right collection type.
A complete guide to Python operators — arithmetic, comparison, logic (including short-circuit), assignment, bitwise, membership, identity, the walrus operator, and the operator precedence table.
A complete guide to conditional statements in Python — if/elif/else, conditional expressions, guard clauses and early returns, match-case with structural pattern matching, and branching anti-patterns that make code hard to read.
A complete guide to loops in Python — for loops, while loops, range, enumerate, zip, break/continue/else, list comprehensions, generator expressions, and iteration anti-patterns often carried over from other languages.
A complete guide to Python functions — definition and calling, parameter types (positional, keyword, default, *args, **kwargs), type hints, return values, lambda, functions as first-class objects, closures, and the mutable default argument anti-pattern.
A complete guide to Python classes — instance attributes and methods, class methods, static methods, encapsulation with property, inheritance and super(), multiple inheritance, magic methods, dataclasses, and when to choose composition over inheritance.
A complete guide to interfaces in Python — duck typing, Abstract Base Classes (ABC) with abstractmethod, abstract properties, Protocol for structural subtyping, virtual subclasses, and when to choose ABC vs Protocol.
A complete guide to Python exceptions — the built-in exception hierarchy, try/except/else/finally, raise and raise from, custom exceptions with attributes, exception chaining, ExceptionGroup (Python 3.11+), and error-handling anti-patterns to avoid.
A complete guide to Python lists — indexing and slicing, all built-in methods, time complexity of operations, shallow vs deep copy, advanced list comprehensions, the modifying-while-iterating anti-pattern, deque for both-end operations, and bisect for sorted lists.
A complete guide to Python dictionaries — access and modification, idiomatic iteration, dict comprehensions, merging, defaultdict, Counter, ChainMap, TypedDict, common patterns like grouping and frequency counting, and operation time complexity.
A complete guide to date & time in Python — the date/time/datetime/timedelta classes, aware vs naive datetimes, time zones with zoneinfo and pytz, parsing and formatting, ISO 8601, Unix timestamps, duration calculations, and timezone anti-patterns to avoid.
A complete guide to Python regex — basic and advanced pattern syntax, re functions (match, search, findall, sub, split), re.compile for performance, named groups, greedy vs non-greedy, lookahead/lookbehind, flags, common validation patterns, and when NOT to use regex.
A complete guide to Python virtual environments — why isolation matters, the built-in venv, directory structure, package management with pip, requirements.txt and pip-tools, uv as a very fast modern alternative, pipenv, and dependency management best practices.
A complete guide to Python keywords — all 35 keywords with their functions, usage examples, and the right context: flow control (if/for/while/break/continue), definitions (def/class/lambda), error handling (try/except/raise/finally), scope (global/nonlocal), special values (True/False/None), and modern keywords (async/await/match).