Answered step by step
Verified Expert Solution
Question
1 Approved Answer
def hasVowel(word): ''' - Return True when word is a string that contains a vowel (a,e,i,o,u,A,E,I,O,U). - It should work for both lower and upper
def hasVowel(word):
''' - Return True when word is a string that contains a vowel (a,e,i,o,u,A,E,I,O,U). - It should work for both lower and upper case vowels. - When word doesn't have a vowel, return False. Return True otherwise. - If word isn't a string, return False (because it is not a string containing a vowel). - Hint: recall the boolean operator "in" and use that when checking if a character is a vowel. '''
return "stub"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started