I have a list:
myList = [abc123, def456, ghi789, xyz999]
I need to search specific values in myList, based on this "sub-list" of allowed values:
allowed = [abc123, xyz999]
Edit: I need to check if myList contains the values in allowed
I already know how to seach for a specific substring in a list but I don't really understand how to do the same with a "sub-list".
Thank you in advance for your help.