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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!