Question: ef 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

ef 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" 

from lab03 import hasVowel # Tests for hasVowel def test_hasVowel_1(): assert hasVowel(True) == False def test_hasVowel_2(): assert hasVowel("Pythn") == False def test_hasVowel_3(): assert hasVowel("") == False def test_hasVowel_4(): assert hasVowel("borg") == True def test_hasVowel_5(): assert hasVowel("frEE") == True

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!