Mega Code Archive
Categories
/
Python Tutorial
/
List
Compare two lists
list1 = ['abc', 123] list2 = ['xyz', 789] list3 = ['abc', 123] print 1ist1 < list2 print list2 < list3 print list2 > list3 and list1 == list3