x, y = 1.1, 1.1
a = 1.1
b = 1.1
print(id(x), id(y), id(a), id(b))
print(x is y, a is b)
I would think that x, y, a, and b would all be tied to the same object/memory location. Does declaring two variables in a single line have something to do with this?
Output:
31705096 54184744 31705048 31705048
False True