Dictionary and bool | Sololearn: Learn to code for FREE!

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'}

8/2/2021 5:30:55 AM

Zokir Zokir

2 Answers

New Answer

+8

https://www.sololearn.com/Discuss/1672751/?ref=app

+2

Oh, thanks!