10 lines
145 B
Python
10 lines
145 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)
|