How can I search list(s) where all the elements exactly match what I'm looking for. For instance, I want to verify if the following list consist of 'a', 'b' and 'c', and nothing more or less.
lst=['a', 'b', 'c']
I did this:
if 'a' in lst and 'b' in lst and 'c' in lst:
#do something
Many thanks in advance.