Rosetta¶
A quick reference for Python developers learning other languages. Starting from familiar Python patterns, see the equivalent in other languages side by side.
- Language Overview — type system, execution, tooling, philosophy
- Primitive Types & Variables — declaration, conversion, zero values, swap
- Collections — list, dict, set, string
- Conditionals — if/else, ternary, match/case, truthy/falsy
- Loops — for, while, enumerate, zip, range
- Functions — multiple return, variadic, lambda, decorator
- Structs, Methods & Interfaces — class, inheritance, ABC, visibility
- Error Handling — try/except, finally, context manager
- Concurrency — threading, asyncio, queue, lock