Hello,
when two variables have the same value, it seems that they refer to the same object
e.g.:
a = 10
b = 10
a is b #True
I read on the internet that this is only valid up to 256 and from 257 false
but in the Playground the value 1000 is still true.
But if I use Powershell and compare a and b with the is operator, it returns False from the value 257 (Python 3.11)
How does this make sense?
Kind regards
Course: https://www.educative.io/collection/10370001/5473789393502208
Lesson: https://www.educative.io/collection/page/10370001/5473789393502208/5429296082452480