+ 2

When should I use a dictionary in python?

28th Aug 2020, 6:08 PM
Another52
Another52 - avatar
3 Respuestas
+ 8
any time
28th Aug 2020, 6:09 PM
Ãbhïšhêķ pãł
Ãbhïšhêķ pãł - avatar
+ 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!
28th Aug 2020, 6:28 PM
Shadoff
Shadoff - avatar