0

a = {True: 'yes', 1: 'no', 1.0: 'maybe'}

Can someone explain why this it giving { True :’maybe’ } when I am doing print(a)

9th Apr 2020, 2:54 AM
SUMIT CHAUHAN
SUMIT CHAUHAN - avatar
1 Réponse
0
found the explantion .. so basically 1 1.0 and True means yhe same thing and the values fot the same keys are getting overriden let me kniw if my understanding is correct
9th Apr 2020, 3:22 AM
SUMIT CHAUHAN
SUMIT CHAUHAN - avatar