micropython/tests/basics/dict_get.py

4 lines
65 B
Python
Raw Normal View History

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