+ 2
Printing dictionary python
Why is the output of print({True:'yes',1:'no'}) This? {True: 'no'}
1 ответ
+ 6
There cannot be two keys in the dictionary with the same name, and since "True" and 1 the same thing, it overwrites its value with "no".
https://code.sololearn.com/c30QE5TkR1VG/?ref=app