I am new to Python so my question may seem obvious. But according to W3Schools two variables are only the same under an 'is' operator if they reference the same object. So my question is, why does following return True? I thought Python creates two separate memory locations for them?
a = 500
b = 500
print(a == b) # True
print(a is b) # True, why is this true?