Question
Instructions: This program requires a function for counting the vowels and a main () function where the input and output for the program will go.
Instructions: This program requires a function for counting the vowels and a main () function where the input and output for the program will go. Add comments inside the code. Create input statements for the user to enter the string in the main part of the code and then call the function countVowels(string) from the main() function of the code. The output in main() should include the count of the vowels from the input. Make sure the output and input are in main() NOT the function.
Problem: Using Python 3+ Write a function
def countVowels (string)
that returns a count of all vowels in the string string. Vowels are the letters a,e,I,o,u and their uppercase variants.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started