==compares values;iscompares identity (same object in memory). Useisonly forNone,True,False.
x = [1, 2]; y = [1, 2]
x == y # True
x is y # False== compares values; is compares identity (same object in memory). Use is only for None, True, False.
x = [1, 2]; y = [1, 2]
x == y # True
x is y # False