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)

A professor always makes a point of learning the names of al…

A professor always makes a point of learning the names of all the students in their class. Normally they are able to do this in their head, but has recently found that they need note cards to help remember. This change in behavior is best described as __________.