11 lines
146 B
Python
11 lines
146 B
Python
d = dict.fromkeys([1, 2, 3, 4])
|
|
l = list(d.keys())
|
|
l.sort()
|
|
print(l)
|
|
|
|
d = dict.fromkeys([1, 2, 3, 4], 42)
|
|
l = list(d.values())
|
|
l.sort()
|
|
print(l)
|
|
|