List equivalent?, same object? : List Compare : List PYTHON examples


PYTHON examples » List » List Compare »

 

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?


           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo List
» List Compare