Compare two lists : Compare List : List PYTHON TUTORIALS


PYTHON TUTORIALS » List » Compare 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



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo List
» Compare List