Printing Python dicts | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

30th Jan 2018, 10:59 AM
Eric Blinkidu
Eric Blinkidu - avatar
3 Answers
+ 2
the reason seems to be that the keys are all the same.
30th Jan 2018, 11:22 AM
davy hermans
davy hermans - avatar
+ 2
Oh, I see.
30th Jan 2018, 12:29 PM
Eric Blinkidu
Eric Blinkidu - avatar