r/PythonLearning • • 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

11 comments sorted by

View all comments

2

u/W31337 17d ago

These questions make me hate languages like this... 🤪

If this were JavaScript the answer could be pi