0
Dictionaries why False?
In the code blow the key 1 exists. Why do I get False instead of "apple"? https://code.sololearn.com/crBCZ05rwLwg
3 Antworten
+ 4
True, when it comes to dicts, is equivalent to 1.
So when you add True as a key to your dict, 1 is overwritten.
+ 2
Good
Thanks