3. finds the vowel in a given word

PHOTO EMBED

Fri Aug 19 2022 14:07:34 GMT+0000 (Coordinated Universal Time)

Saved by @mwebrania #python

vowels = ['a', 'e', 'i', 'o', 'u']
word = 'enter'
found = []
for letter in word:
    if letter in vowels:
        if letter not in found:
            found.append(letter)
for vowel in found:
    print(vowel)
else:
    print('No vowels found')
content_copyCOPY