Imegem destaque

[🐍PyTricks]: "is" vs "=="

Original: Python Tricks Book # "is" vs "==" >>> a = [1, 2, 3] >>> b = a >>> a is b True >>> a == b True >>> c = list(a) >>> a == c True >>> a is c False # * "is" expressions evaluate to True if two # variables point to … Continue lendo [🐍PyTricks]: "is" vs "=="