+ 2
When should I use a dictionary in python?
3 Respuestas
+ 2
There are lots of use cases for dictionaries...
https://code.sololearn.com/cs9HQL5QIwGW/#
https://code.sololearn.com/cq12Bd2tgatz/#
https://code.sololearn.com/cVUv1qf9RL2W/#py
https://code.sololearn.com/c1APl0xQtDqP/#py
+ 8
any time
+ 1
dict has key-value pairs, values can be the same but keys must be different. So you can use dict to get the same result for the similar but not the same user inputs like, jan, january, Jan, January, Janvary, januar. Thus you could prevent misspelling and crush of you programm
For Example!