b4dea46d8b
With dict being unordered of course.
6 lines
83 B
Python
6 lines
83 B
Python
d = {1: 2, 3: 4}
|
|
els = []
|
|
for i in d:
|
|
els.append((i, d[i]))
|
|
print(sorted(els))
|