circuitpython/tests/basics/dict_get.py

4 lines
65 B
Python
Raw Permalink Normal View History

2014-01-06 13:53:16 -05:00
for d in {}, {42:2}:
print(d.get(42))
print(d.get(42,2))