+ 12

[Python] Dictionary inverter

Guys, I can't find the thread I found a while ago where someone asked for a dictionary inverter. Well, here it is. Crude but effective. I'd be grateful for directing me back to it, if someone knows where it was :) https://code.sololearn.com/clYEF7oR5Q3k/?ref=app

4th Jul 2017, 4:59 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
3 Respostas
+ 5
No idea :) All I got was this description I turned into comments there. Perhaps it has something to do with grouping by value..?
5th Jul 2017, 4:10 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
I can read the code and understand it alright. So I'm not calling it crude. If I may ask, in what use cases is this required?
4th Jul 2017, 10:12 PM
Venkatesh Pitta
Venkatesh Pitta - avatar
0
@Kuba thank you :)
5th Jul 2017, 4:21 AM
Venkatesh Pitta
Venkatesh Pitta - avatar