The program is a simple implementation of finding the number of vowels in a given string.
Finally, the program prints the total number of vowels in the string.
str = "Tutor Joes" count = 0 vowel = set("aeiouAEIOU") print("String :",str) print("Vowels :",vowel) for alphabet in str: if alphabet in vowel: count = count + 1 print("Number of Vowels :", count)
String : Tutor Joes Vowels : {'A', 'a', 'i', 'U', 'o', 'u', 'I', 'E', 'O', 'e'} Number of Vowels : 4
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions