...

/

Nan-reflexivity

Nan-reflexivity

We'll cover the following...

Let’s see what Python thinks about NaN and infinity.

1.

What do you think about these assignments?

Press + to interact
a = float('inf')
b = float('nan')
c = float('-iNf') # These strings are case-insensitive
d = float('nan')

Let’s observe some behaviors ...