Jan-06-2020, 11:27 PM
def search4vowels(word): vowels = set('aeiou') found = vowels.intersection(set(word)) for vowel in found: print(vowel)Gives a Traceback name error when trying to invoke: "name 'search4vowels' not defined. This came from 'Head First Python'. And I know, using numbers in the function name isn't the best practice. It's the way it is in the book.