Skip to content

Commit a82fa16

Browse files
authored
Added the program to count vowels
1 parent 9bccf15 commit a82fa16

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

MB_Vowels

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#https://www.facebook.com/manav.bahl.3/posts/3612914422073867
2+
#Subscribed by Manav Bahl
3+
4+
5+
string=raw_input("Enter string:")
6+
vowels=0
7+
for i in string:
8+
if(i=='a' or i=='e' or i=='i' or i=='o' or i=='u' or i=='A' or i=='E' or i=='I' or i=='O' or i=='U'):
9+
vowels=vowels+1
10+
print("Number of vowels are:")
11+
print(vowels)

0 commit comments

Comments
 (0)