3 lines
85 B
Python
3 lines
85 B
Python
#create a tuple
|
|
tuplex = ((2, "w"),(3, "r"))
|
|
print(dict((y, x) for x, y in tuplex)) |