The function below takes a single string parameter called sentence. Your function should return True if the sentence contains at least one copy of each of the following vowels: a, e, i, o, and u. Otherwise, return False. The vowels can be either upper case or lower case.

student.py
Bef contains_all_values (sentence): 1 w

Respuesta :

fichoh

The program returns a boolean if a passed in sentence is has a vowel letter contained or not. The program written in python 3 goes thus:

def contains_vowel(sentence):

#initializes a function and which takes in a string of words

vowel = ['a','e','i','o','u']

#define the English vowels

for s in sentence:

#iterate through the letters in the sentence passed in

if s in vowel:

#checks if it contains a vowel

return True

#then returns true

else :

return False

#otherwise return False

sent = 'mtq'

print(contains_vowel(sent))

#A sample run of the program ls written and run below.

Learn more : https://brainly.com/question/20533392

Ver imagen fichoh