This is comparing the Python id if they are the same a = 20 b = a print(a is b) # > True c = 20 print(a is c) # > False