I have a list of strings called keywords:
keywords = ["123", "hello there"]
I want to see if any of these strings are in this list strArr:
strArr = ["123", "hello there", "another"]
I've tried this:
if all (keyword in strArr for keyword in keywords):
print("True")
else:
print("False")
It works and returns true if I have the full string, but fails when I try to find a sub-string like so:
keywords = ["123", "hello"]