Skip to content

Rosetta

A quick reference for Python developers learning other languages. Starting from familiar Python patterns, see the equivalent in other languages side by side.

  1. Language Overview — type system, execution, tooling, philosophy
  2. Primitive Types & Variables — declaration, conversion, zero values, swap
  3. Collections — list, dict, set, string
  4. Conditionals — if/else, ternary, match/case, truthy/falsy
  5. Loops — for, while, enumerate, zip, range
  6. Functions — multiple return, variadic, lambda, decorator
  7. Structs, Methods & Interfaces — class, inheritance, ABC, visibility
  8. Error Handling — try/except, finally, context manager
  9. Concurrency — threading, asyncio, queue, lock