Dictionary (dict)

Python’s key-value map, like a PHP associative array or a JS object.

Python PHP JavaScript

Example

page = {"title": "Lexikon", "lang": "en"}
page.get("intro", "")     # safe lookup with a default
Updated 2026-11-26 f-string →