What "is" means in python, if it's actually not equal to "=="?
>>> c = 300
>>> b = 300
>>> b == c
True
>>> b is c
False
What "is" means in python, if it's actually not equal to "=="?
>>> c = 300
>>> b = 300
>>> b == c
True
>>> b is c
False
'is' is the identity comparison.
'==' is the equality comparison.
So in your example you have said
b = 300
c = 300
They both hold the same value so they are equal in terms of value however, they are still both two separate variables with their own identities, they just share the same value.
If you were to do this:
b = 300
c = b
b is c would return true.