Is it a Vowel?
Beginner
Is it a Vowel?
Description
Let's create a fun little function to help us determine whether a given letter is a vowel or not! Imagine you're a detective on a mission to separate the vowels from the consonants. Your task is to write a Python function that checks if the provided letter is among those special vowels: a, e, i, o, u (both uppercase and lowercase).
Your mission, should you choose to accept it, is to complete the function is_it_a_vowel(letter: str) -> bool that takes a single character as input and returns True if it's a vowel and False otherwise.
Examples
is_it_a_vowel('a') # Returns True is_it_a_vowel('E') # Returns True is_it_a_vowel('z') # Returns False is_it_a_vowel('O') # Returns True
Are you ready to accept this mission and spot those vowels? Let’s do it!
Inputs
Arg 1:
"a"Expected Output
trueActual Output