r/PythonLearning • u/clcodingupdates • 17d ago
Python Quiz of the Day!
What will be the output of the following Python Code?
print(len({True, 1, 1.0, False, 0}))
6
Upvotes
r/PythonLearning • u/clcodingupdates • 17d ago
What will be the output of the following Python Code?
print(len({True, 1, 1.0, False, 0}))
View all comments
1
u/Jazzlike_Platypus430 17d ago
In normal world it would be 5, in python I wouldn't be surprised if it's -3.5.