Skip to content

#Python

2 articles

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

A FastAPI code example with an app, a GET route with a path parameter and a link to the automatic docs

Programming & Cheat Sheets

FastAPI Tutorial: Build Python APIs with Examples

FastAPI is a modern Python framework for building APIs. You write endpoints as Python functions with type hints, and FastAPI uses them with Pydantic to validate requests, generate interactive docs at /docs and produce an OpenAPI schema, with async support and dependency injection built in.

Anamika

Anamika

· 6 min read