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

The solid below was made by cutting a cone-shaped hole out of a cylinder. The surface area of the resulting composite solid is square cm. Write your answer in t
Find the measure of angle b. Which is the answer? A.79 B.101 C.169 B.11 Can you help me, I would appreciate it very much:)
What statement best describes what a circle graph shows? A. Data as proportions of a whole B. A frequency distribution C. The average of a data set D. The rela
a scientist working in the middle of a desert found a rock with a fossil of a clam. the scientist knew that clams live in the sea. which could the fossil tell t
9x2 + 11x + 3 = 0 Solving using the Quadratic Formula
How much change did she receive?
Help me pleaseee I will give Brainliest!!
can someone help me!??
The height of a square pyramid-shaped gift box is one half the length of each side. The volume of the box is 4,500 in.? How many inches high is the box PLEASE H
If Linda is at the store and can buy any two fruits (the store sells apples, oranges, pears, bananas, and kiwis), how many combinations of fruit can she choose?