be019ce063
Pairs are limited to tuples so far.
5 lines
120 B
Python
5 lines
120 B
Python
print(dict([(1, "foo")]))
|
|
d = dict([("foo", "foo2"), ("bar", "baz")])
|
|
print(sorted(d.keys()))
|
|
print(sorted(d.values()))
|