Use Python to write the following functions: A function ca…
Use Python to write the following functions: A function called is_vowel() that takes a single character string as argument and returns True if the character is a vowel, otherwise, the function returns False. Write another function called count_vowels() that accepts a string as an argument and returns the number of vowels that the string contains. count_vowels() should use the is_vowel() function to count the number of vowels in the string. Write a third function called count_consonants() that accepts a string as an argument and returns the number of consonants that the string contains. count_consonants() should use the is_vowel() function.