Gogontle4075 Gogontle4075
  • 15-12-2022
  • Computers and Technology
contestada

this function checks if a character is a vowel. if it is, it returns true. otherwise, it returns false. where should return false; be written in the code?

Respuesta :

belali
belali belali
  • 15-12-2022

In Python, it can be easily written as follows:

def check_vowel(char):

   return True if (char=='a' or char=='e' or char=='i' or char=='o' or char=='u') else False

   

print(check_vowel(input("Please enter the character: ")[0].lower()))

Ver imagen belali
Answer Link

Otras preguntas

PLEASE HELP ME If Wendell creates a scale drawing using the scale 1 inch to 10 feet, what will the dimensions be?
I dont get theseee! HELP
perimeters and Areas of rectangles (PLEASE HELP)
The minimum point on the graph y = f(x) is (2.-5). What is the minimum point on the graph of the equation y = f(x) + 3?
What is the value of r? r = 4 ft r = 8 ft r = 16 ft r = 32 ft.
Identify several factors that may influence the formation of a person's set of ethics or values. Describe how this could affect their career in a healthcare set
3. How many y-values are there for each x-value in the function represented by the graph? (A) 0 (C) 2 (B) 1 0 infinitely many
Yousef spins the following spinner 20 times, and it lands on 2 a total of 5 times. please help I will give brainliest
Who were the Vietcong?
Jennifer goes into a store and slips a bracelet into her purse. She successfully shoplifts for the first time. Labeling theorists would call this ____________ d