difference between == and is operator in python?
'is' and '==' operators in Python The is operator compares the identity of two objects while the == operator compares the values of two objects. ... The is operator evaluates to true if the variables on either side of the operator point to the same object and false otherwise.