Ask Question
17 October, 05:51

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. 17 October, 08:00
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers