Q. Write a program that inputs a line of text and prints out the count of vowels in it.
Answer =
string = input("Enter a string :-") count = 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 == "I" or i == "O" or i == "U": count += 1 print("Number of vowel :-", count)
hey enda pandrenga
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )