I need to check whether a vowel is present in a word. If it is, an operation should be carried out on the word say op(word). I want to avoid a for loop because
op(word)
You can avoid the for loop using a set intersection
for
if set('aeiou').intersection(word.lower()):