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

Question 2 What word in paragraph 10 means "pushed something forward"? Maximum Kinetic Propelled Transformed rample of an
Who made up thlower class of Sumerian socety?​
HELP FAST IM GETTING TIMED BRAINLIEST Where is the high pressure area during a sea breeze? Over the water moving toward the land Over the land moving toward th
find the term"ancestral language" in line 60. Define the tem based on the context of the previous pamagraph.
math linear functions
The density of a certain material is such that it weighs 5 ounces per fluid ounce of volume. Express this density in pounds per liter
describe the meaning of the song above that start with the letters spelled out as RASAR ______________________A ______________________S ______________________A
A recipe for servings of pudding calls for 2/3 cups of cream. How much cream is needed for 18 servings of pudding? Plz help
HURRY PLEASE HELP A bird goes from a higher location to a lower location at a rate of 3 meters per second. Which equation models the change in the bird's posi
Renee can run 10 miles in 1.75 hours. Amy can run 8 miles in 1.5 hours who runs faster