Write a program, which allows a user to enter a sentence, and then counts the number of vowels in that sentence. Hint vowels are: a,e,i,o,u. in vb.net code example
Example: output percentage of vowels and consonants in a given file in python
str1 = input("Please Enter Your Own String : ")
vowels = 0
consonants = 0
for i in str1:
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'):
vowels = vowels + 1
else:
consonants = consonants + 1
print("Total Number of Vowels in this String = ", vowels)
print("Total Number of Consonants in this String = ", consonants)