5th day of python challenges 80-87
This commit is contained in:
7
challenges80-87/challenge-085.py
Normal file
7
challenges80-87/challenge-085.py
Normal file
@@ -0,0 +1,7 @@
|
||||
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))
|
Reference in New Issue
Block a user