How to check if a list is a subset of another list


Topic: How to check if a list is a subset of another list

Solution

if(all(x in test_list for x in sub_list)): 
    flag = True



List all Python Programs