Skip to content

#Data Science

1 article

A Python code editor showing a dataclass, a list comprehension and an f-string

Programming & Cheat Sheets

Python Cheat Sheet: Basics to Advanced with Examples

Python basics are variables and types, strings and f-strings, lists, tuples, dictionaries and sets, control flow, functions, modules, exceptions and files. Advanced Python adds comprehensions, classes and dataclasses, decorators, generators, context managers, type hints, match statements, async/await and the standard library's power tools.

Anamika

Anamika

· 7 min read