Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check two list python not match

l1 = [10, 20, 30, 40, 50] 
l3 = [50, 10, 30, 20, 40] 
 
a = set(l1)
b = set(l3)
 
if a == b:
    print("Lists l1 and l3 are equal")
else:
    print("Lists l1 and l3 are not equal")
Source by www.journaldev.com #
 
PREVIOUS NEXT
Tagged: #check #list #python #match
ADD COMMENT
Topic
Name
9+2 =