0
a = {True: 'yes', 1: 'no', 1.0: 'maybe'}
Can someone explain why this it giving { True :’maybe’ } when I am doing print(a)
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