I need to check if a couple of substrings are in a list. I found the following codes. But it takes only one string.
test_list = ['GeeksforGeeks', 'Geeky', 'Computers', 'Algorithms']
subs = 'Geek'
res = [i for i in test_list if subs in i]
print ("All strings with given substring are : " + str(res))
What should I do if I want to find two substrings such as 'Geek' and 'Algo'.