Ask Question
6 October, 19:33

Write a value-returning function isVowel that returns the value true if a given character is a vowel and otherwisereturns false.

+2
Answers (1)
  1. 6 October, 22:05
    0
    Answer: Following is the function isVowel written in python:-

    def isVowel (check) : #defining isVowel function with parameter check

    #following are the nested if else if for checking that check is a vowel or not if yes returning True if not returning False.

    if check = = "A" or check = ="a":

    return True

    elif check = = "E" or check = ="e":

    return True

    elif check = = "I" or check = ="i":

    return True

    elif check = = "O" or check = ="o":

    return True

    elif check = = "U" or check = ="u":

    return True

    else:

    return False

    Explanation:

    In the function we are checking in each if or elif statement that check is a vowel or not if it is a vowel then returning True if not returning False.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a value-returning function isVowel that returns the value true if a given character is a vowel and otherwisereturns false. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers