I have a code that checks if a string is in a list of strings like,
for a in array:
if x in a:
return True
return False
if a string is found in the list, return True and False otherwise. I am wondering if it can be written in one line of code.