Using the is operator on strings that have the same value returns True, but using the is operator on lists that have the same elements returns False. Why?
a = 'banana'
b = 'banana'
c = ['b', 'a']
d = ['b', 'a']
print(a is b)
print(c is d)
If the is operator compares whether the operands refer to the same object, both of the print statements should return True. However, that is not the case for lists. Thus, it seems that the two lists don't refer to the same object. Is there a specific reason why?