Question: print(Test 1 : , vowel(Hello this is a sample string longet vowel substring is annnnnnnnnnnnndie) == annnnnnnnnnnnndi) print(Test 2 : , vowel(But I regard the

print("Test 1 : ", vowel("Hello this is a sample string longet vowel substring is annnnnnnnnnnnndie") == "annnnnnnnnnnnndi") print("Test 2 : ", vowel("But I regard the two names as describing one form only; for whether the government is in the nads of one or many, if the governors have been trained in the manner which we have supposed, the fundamental laws of the State will be maintained.") == 'only; fo') print("Test 3 : ", vowel("") == False)print("Test 1 : ", vowel("Hello this is a sample string longet vowel

Question 3: Vowels! (4 points) Write a fucntion vowel() that takes a string and returns the largest substring that starts with a vowel, ends with a vowel, and has no vowels in between. If the string has less than 2 vowels return false. If two substrings have the same length, your code should return the first substring. In [31]: # YOUR CODE HERE In [32]: print("Test 1 : ", vowel("Hello this is a sample string longet vowel substring is annnnnnnnnnnnndie") == "annnnnnnnnnnnndi") print("Test 2 : ", vowel("But I regard the two names as describing one form only; for whether the government is in the nads print("Test 3 : , vowel("") == False)

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!