demo_ref_dictionary_get2.py:
car = { "brand": "Ford", "model": "Mustang", "year": 1964 } x = car.get("price", 15000) print(x)
➜ begtut>python demo_dictionary_get2.py
15000