List equivalent?, same object? : List Compare « List « Python






List equivalent?, same object?

List equivalent?, same object?
L1 = [1, ('a', 3)]         # same value, unique objects
L2 = [1, ('a', 3)]
print L1 == L2, L1 is L2         # equivalent?, same object?


           
       








Related examples in the same category

1.Same Object or identical contentSame Object or identical content
2.List: less,equal,greater: tuple of resultsList: less,equal,greater: tuple of results