Dictionary and bool | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponses
+ 2
Oh, thanks!
2nd Aug 2021, 6:05 AM
Zokir Zokir
Zokir Zokir - avatar