How to check if a list not contains all the elements of another list Python

1 Answer

0 votes
lst1 = [3, 6, 4, 8, 9] 
lst2 = [1, 4, 8]
 
result =  all(elem in lst1 for elem in lst2)
 
if not result:
    print("fasle")    
else :
    print("true")


 
'''
run:
 
fasle
 
'''

 



answered Aug 14, 2019 by avibootz
...