5 lines
98 B
Python
5 lines
98 B
Python
let d = {'a': 1, 'b': 2, 'c': 3}
|
|
let dInverted = {v: k for k, v in d.items()}
|
|
print(d,dInverted)
|
|
|