is_not.py 262 B

12345678910
  1. assert (1 is not 1) == False
  2. assert (1 is not 2) == True
  3. assert (1 is not None) == True
  4. assert (None is not None) == False
  5. assert (None is not 1) == True
  6. assert (1 is not 1.0) == True
  7. assert (1.0 is not 1) == True
  8. assert (1.0 is not 1.0) == False
  9. print("PASS")