0

How to swap key:values in a dictionary in python?

About dictionaries

10th Jun 2020, 7:05 AM
Rodrigo Cerna Bello
Rodrigo Cerna Bello - avatar
2 ответов
+ 2
d = {value: key for key, value in d.items()}
10th Jun 2020, 7:25 AM
Seb TheS
Seb TheS - avatar