circuitpython/tests/basics/dict_iterator.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
83 B
Python
Raw Permalink Normal View History

2014-01-06 12:17:02 -05:00
d = {1: 2, 3: 4}
els = []
2014-01-06 12:17:02 -05:00
for i in d:
els.append((i, d[i]))
print(sorted(els))