Question: 2. You are given the following function that counts and then prints the number of vowel occurrences in the given sentence. Why is there an
2. You are given the following function that counts and then prints the number of vowel occurrences in the given sentence. Why is there an error when we run this program? What would you fill in line 3 to fix the program? sentence = "The quick brown fox jumps over the lazy dog" vowels =[a,e,i,10,u] 1) BLANK for letter in sentence: if letter in vowels: count+=1 print(count)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
