Python Cheatsheet

Python programming language quick reference

Data Types

int, float, str, bool, list, tuple, dict, set, None

Control Flow

if/elif/else, for, while, break, continue, pass, try/except

Functions

def, return, *args, **kwargs, lambda, decorators, generators

OOP

class, __init__, self, inheritance, polymorphism, encapsulation