+ 4
Difference between (is) and(==)?
print([]==[])#output is True print([]is[])#output is False (why?!) print(()==())#output is True print(()is())#output is True
1 Answer
+ 1
[] is [] are 2 different list objects.
so it doesnt point to the same object.
== checks equality.