DEV Community

Discussion on: A small Python Quiz

mridulnetizen profile image

That's cool! I'm wondering what's the reason for the same? Please explain

bascodes profile image
Bas codes Author

Nan stands for “not a number” and comparing two things we know nothing about (other than what they’re not) is not reasonable.

Therefore by definition, nan is not the same as another nan.