< Back

Lab 6: Text Processing


Count Vowels

In a file called vowels.py, create a function called count_vowels(a_string). This function should print the number of vowels that are contained within the string.

Example

====== Loading Program ======
>>> count_vowels("Scotty")
1
>>> count_vowels("antidisestablishmentarianism")
11

Hint