point = {"x": 1, "y": 2} point = dict(x=1, y=2) point["z"] = 3 if "a" in point: ... point.get("a", 0) # 0 del point["x"] for key, value in point.items(): ... # Dictionary comprehensions values = {x: x * 2 for x in range(5)}