exists

Check if multiple strings exist in another string

Check if multiple strings exist in another string Question: How can I check if any of the strings in an array exists in another string? For example: a = [‘a’, ‘b’, ‘c’] s = "a123" if a in s: print("some of the strings found in s") else: print("no strings found in s") How can I …

Total answers: 19