The following count_vowels() function attempts to count the…
The following count_vowels() function attempts to count the number of vowels in a given string. For example: test_string = “Hello World” print(count_vowels(test_string)) # Should print 3 Identify and correct the errors in the following code snippet: def count_vowels(string): vowels = ‘aeiouAEIOU’ if len(string) == 0 return 5 if string in vowels return 1 + count_vowels(string) return count_vowels(string)