Subscribe
Sign in
Swap keys and values in a dictionary in…
Ardit Sulce
Jun 17
5
1
1
Level: Beginner
Read →
1 Comment
Greg
Jun 17
Reversed = { b:a for a,b in original.items() }
Expand full comment
Reply
Share
This site requires JavaScript to run correctly. Please
turn on JavaScript
or unblock scripts
Reversed = { b:a for a,b in original.items() }