Python program to count the number of vowels in a string

0
1415
string=input("Please enter string: ")
vowels=0
for i in string:
 if(i=='a' or i=='e' or i=='i' or i=='o' or i=='u' or i=='A' or i=='E' or =='I' or i=='O' or i=='U'):
  vowels=vowels+1
print("Number of vowels in string are:")
print(vowels)

   Output 1:
           Please enter string: programming language
           Number of vowels in string are:
           7
   Output 2:
           Please enter string: vowels program
           Number of vowels in string are:
           4

इन्हें भी देखें।

Python Programs के लिये यहाँ click करें।

 

 

 

Python program to count the number of vowels in a string write a python program to count the number of vowels in a string write a program to count the number of vowels in a string in python write a program to count the number of vowels in a string program to count the number of vowels in a string find number of vowels in a program find number of vowels in a program using string find number of vowels in a program using string in python python program to count the number of vowels in a string using for loop python program to count the number of vowels present in a string python program to count the number of vowels present in a string using for loop python program to count the number of vowels present in a string python program to count the number of each vowels in a string python program to count the number of vowels in a string. take the string input from the user python program to count the no of vowels in a string python program to count the number of each vowel in a string python program to count the number of vowels python program to count vowels in a string python program to count the vowels in a string python program to count no of vowels in string program to count the number of vowels in a given string in python program to count the number of vowels in a string in python python program to count the number of each vowel write a program to count the number of vowels in a given string in python

LEAVE A REPLY

Please enter your comment!
Please enter your name here