List: less,equal,greater: tuple of results : List Compare « List « Python






List: less,equal,greater: tuple of results

List: less,equal,greater: tuple of results
L1 = [1, ('a', 3)]
L2 = [1, ('a', 2)]
print L1 < L2, L1 == L2, L1 > L2     # less,equal,greater: tuple of results



           
       








Related examples in the same category

1.List equivalent?, same object?List equivalent?, same object?
2.Same Object or identical contentSame Object or identical content