0
pairs = {1: "apple", "orange": [2, 3, 4], True: False, 12: "True", } print(pairs.get("orange")) print(len(pairs))
Why does the len() function print 3 ?????
2 Réponses
+ 3
Eyob Yifru
Because 1 means True
So 1 will be override by True and dictionary will have 3 keys
+ 1
Thank you!!