Post

@PythonPr False because list is not equal to a tuple, even if contents match.
English

@PythonPr False.
`a` is a list.
tuple(a) produces a tuple from `a`.
So, it has the same items, in the same order.
But within a tuple as the container.
As the containers don't match (list vs tuple),
the comparison gives False.
English

@PythonPr False. While == evaluates values, it also considers data type as a factor equality.
English

@PythonPr False
[1, 2, 3] is a list.
tuple(a) is (1, 2, 3), which is a tuple.
The values are the same, but the data types are different.
English









