Python cheat sheets
Printable one-page references. Every example shows its real output.
- Python basicsPrinting, variables, types and arithmetic.
- StringsWorking with text.
- Lists, tuples and setsCollections of values.
- DictionariesKey and value pairs.
- Conditions, loops and functionsMaking decisions and repeating code.
- NumPyFast arrays for numbers. Start with
import numpy as np.
How to use the cheat sheets
Each sheet groups the commands you need most for one area of Python. Every example shows the code on the left and the output that Python really printed. Print a sheet or save it as a PDF, keep it beside you while you practise, and open the example code in the editor to change it and see what happens.