Type the vowel function that takes a single character as a parameter and returns True if it is a vowel and False if it is a consonant.
Notice that
Vowel ("a") should return True
Vowel ("b") should return False
Vowel ("E") should return True
Returned True and False values must be of type bool (Booleans)
Tip: Remember that to pass a vowel as a parameter it must be a text, ie it must be enclosed in quotation marks.
vogais = ("a", "e", "i", "o", "u")
letra = ("b", "c", "d", "f", "g", "h", "i", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "y", "z")
def vogal():
input(str("Digite uma letra: "))
while letra == vogais:
vogal = "a" or "e" or "i" or "o" or "u"
return "True"
else:
return "False"
No error in the code, but it is not in the right format, what can I do to make it simpler?