+ 6
Printing Python dicts
A certain Python challenge question involves printing a dictionary with differently typed keys and values. Could someone please explain it? It is puzzle3 in the code below: https://code.sololearn.com/csB19ISLTTVK/?ref=app
3 Answers
+ 2
the reason seems to be that the keys are all the same.
+ 7
Somebody did ask the same question: https://stackoverflow.com/questions/47803764/understanding-dict-literal-evaluation-with-true-1-and-1-0-as-keys
+ 2
Oh, I see.