A comprehensive Python cheat sheet packaged as a Claude Code skill. Sourced from quickref.me/python.
| File | Purpose |
|---|---|
SKILL.md |
Skill entry point with routing and triggers |
PythonCheatSheet.md |
Full Python reference (~500 lines, 13 sections) |
Workflows/Lookup.md |
Syntax lookup workflow |
Workflows/DrillGen.md |
Practice drill generator |
- Getting Started — variables, data types, arithmetic, f-strings
- Built-in Types — str, int, float, list, tuple, set, dict, casting
- Advanced Types — heaps (
heapq), stacks/queues (deque) - Strings — slicing, stride, methods, formatting, f-string fill/align/type/precision
- Lists — comprehensions, filter, operations, slicing
- Flow Control — if/elif/else, ternary
- Loops — for, while, enumerate, zip, range, break/continue, for/else
- Functions — args, kwargs, defaults, lambda, multiple return values
- Modules — import, from, alias, dir
- File Handling — read, write, JSON, delete
- Classes & Inheritance — init, methods, super, repr, polymorphism
- Miscellaneous — comments, generators, exception handling
Copy the skill into your Claude Code skills directory:
cp -r . ~/.claude/skills/Python/Or clone directly:
git clone https://github.com/angry-analyst/python-cheatsheet-skill.git ~/.claude/skills/PythonOnce installed, the skill triggers automatically when you mention Python syntax topics:
> "How do I format numbers in Python f-strings?"
> "Python list comprehension examples"
> "Give me python drills on classes"
Lookup — Quick syntax reference. Loads the relevant cheat sheet section for your question.
DrillGen — Generates progressive practice exercises (basic → intermediate → applied) with hints and solutions.
Cheat sheet content sourced from quickref.me/python. Skill scaffolding built with PAI.