Free cheat sheets

Python Cheat Sheets

Quick, compact reference pages for the Python topics you use every day. You can browse each cheat sheet online, or you can download it as a printable PDF. Keep the most useful ones next to your keyboard, or use them as wallpaper behind your desk.

Python Essentials

Preview of the Python Cheat Sheet

Python Cheat Sheet

Setup, syntax, data types, variables, strings, control flow, functions, classes, errors, and I/O.

View cheat sheet →
Preview of the Python Dev Environment Cheat Sheet

Python Dev Environment Cheat Sheet

Terminal basics, uv and Python versions, uv projects, editor setup, venv and pip, REPLs and notebooks, Ruff, Git, pytest, and common fixes.

View cheat sheet →
Preview of the Python 3.15 Cheat Sheet

Python 3.15 Cheat Sheet

Everyday syntax plus what's new: lazy imports, frozendict, sentinels, unpacking in comprehensions, and UTF-8 by default.

View cheat sheet →
Preview of the Python Decorators Cheat Sheet

Python Decorators Cheat Sheet

Basic decorators, arguments, functools.wraps, decorator factories, class-based decorators, and built-ins.

View cheat sheet →
Preview of the Python itertools Cheat Sheet

Python itertools Cheat Sheet

Infinite iterators, islice and chain, batched and pairwise, combinatorics, accumulate, filtering, and groupby.

View cheat sheet →
Preview of the Python Regex Cheat Sheet

Python Regex Cheat Sheet

Character classes, anchors, quantifiers, groups, lookarounds, flags, and the re module functions.

View cheat sheet →
Preview of the Python File and Folder Automation Cheat Sheet

Python File and Folder Automation Cheat Sheet

pathlib, globbing, reading and writing files, shutil, file metadata, zip archives, and bulk rename recipes.

View cheat sheet →
Preview of the Python Time and Space Complexity Cheat Sheet

Python Time and Space Complexity Cheat Sheet

Big O basics and the costs of lists, strings, dicts, sets, deques, heaps, sorting, binary search, recursion, and caching.

View cheat sheet →
Preview of the Python Security Checklist

Python Security Checklist

Secrets, password hashing, encryption, HTTPS, input validation, injection, and dependency audits.

View cheat sheet →
Preview of the Python Supply Chain Security Cheat Sheet

Python Supply Chain Security Cheat Sheet

Incident checks, startup hook scans, incident response, dependency cooldowns, lock files, audits, agent guardrails, and Trusted Publishing.

View cheat sheet →
Preview of the Git Cheat Sheet for Python Developers

Git Cheat Sheet for Python Developers

Setup, staging and commits, .gitignore, diffs and logs, branches and merge conflicts, remotes, stash, and undoing mistakes.

View cheat sheet →

AI Apps, Agents, and Tools

Data Science and Machine Learning

Web Development