Question: Write code that iterates over to the string sentence and does the following:Count the number of characters using the variable numChars.Count the number of vowels
Write code that iterates over to the string sentence and does the following:Count the number of characters using the variable numChars.Count the number of vowels using the variable numVowels. A character is a vowel if it is a member of the tuple vowels.Print the variables numChars and numVowels preceded by appropriate labels as shown below.Do NOT use the a function to solve the problem. You may use the len function on the string to confirm the your answer is correct.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
