I have a list and It is easy to find if an element is present in a list or not but how to find if a combination of two or all the elements are present in a list?
listi = ["head","strong","pain","chores"]
for one element:
if i in listi:
print("available")
else:
print("Not available")
But How to check combination of elements like if head,strong
is present in a list or pain,cores,strong
or any conbimation of elements is present in a list? How to do?
I understand that we can do via subsets but in that case, I have to create subset of every combination which is not possible