Q:

Python Program to Count the Number of Each Vowel

0

Program to Count the Number of Each Vowel

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now