python-by-example-150-chall.../challenges80-87/challenge-085.py
2019-07-22 15:22:11 +03:00

8 lines
214 B
Python

name = str(input('Enter your name ? : '))
vowel = ['a', 'i', 'e' 'o', 'u']
count = 0
for i in name:
if i.lower() in vowel:
count = count + 1
print('the number of vowels in your name {0}'.format(count))