python is == difference
‘is’ will return True if two variables point to the same object, ‘==” if the objects referred to by the variables are equal.
‘==’ is for value equality. Use it when you would like to know if two objects have the same value.
‘is’ is for reference equality. Use it when you would like to know if two references refer to the same object.