In the example below, I am testing whether any characters in the variable 'characters' are found in the string 'hello'.
characters = ['a','b','c','d']
if True in [c in 'hello' for c in characters]: print('true')
else: print('false')
The one line for loop creates a list of boolean values. I'm wondering if there's any way to not create the list and rather pass the whole condition once one of the conditions in the loop has passed.