Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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)
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
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