python-by-example-150-chall.../challenges80-87/challenge-085.py

8 lines
214 B
Python
Raw Normal View History

2019-07-22 20:22:11 +08:00
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))