Loading, please wait...

A to Z Full Forms and Acronyms

Program to Count the Number of Each Vowel | Python

Mar 05, 2021 Python, , 219 Views
Program to Count the Number of Each Vowel | Python

Program to Count the Number of Each Vowel | Python

vowels = 'aeiou'

str = 'Visit TutorialsLink Community'

str =str.casefold()


count = {}.fromkeys(vowels,0)
for char in str:
   if char in count:
       count[char] += 1

print(count)
A to Z Full Forms and Acronyms

Related Article