Dictionary and bool | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Dictionary and bool

Can someone explain me what's going on? 😅 I really don’t know how this result is obtained. print({True: 'yes', 1:'no', 1.0: 'maybе'}) Result: {True: 'maybe'}

2nd Aug 2021, 5:30 AM
Zokir Zokir
Zokir Zokir - avatar
2 Answers
+ 2
Oh, thanks!
2nd Aug 2021, 6:05 AM
Zokir Zokir
Zokir Zokir - avatar