Why does 16//1 and 16.0 not equal 16 in for loop?

!== == !(===). It checks whether the two values are identical (i.e. inseparable by the computer). You’re looking for !=.

6 Likes