1

This unexpected behavior surprised me:

>>> a = 256
>>> a is 256
True
>>> b = 257
>>> b is 257
False

Why is that?

Thyrst'
  • 1,854
  • 2
  • 20
  • 26

0 Answers0