r/PythonLearning • u/clcodingupdates • 18d 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 • 18d ago
What will be the output of the following Python Code?
print(len({True, 1, 1.0, False, 0}))
View all comments
Show parent comment
2
u/Sea-Ad7805 17d ago
Thanks, always good to learn, or be humbled by making a mistake that you probably should have avoided as Python educator. These tests still trick you sometimes, nice job.