Published
- 1 min read
invert dictionary python
The solution for this is noted below
invert dictionary python
Solution
inv_map = {v: k for k, v in my_map.items()}
Try other methods by searching on the site. That is if this doesn’t work
Published
- 1 min read
The solution for this is noted below
inv_map = {v: k for k, v in my_map.items()}
Try other methods by searching on the site. That is if this doesn’t work