Is It a Consonant?
Beginner
Welcome to the world of alphabets, where vowels and consonants play a crucial role in forming words! In this challenge, you will write a function to check if a given lowercase letter is a consonant or not.
Consonants are letters in the English alphabet that are not vowels (a, e, i, o, u). So if you pass any letter other than 'a', 'e', 'i', 'o', or 'u' to the function, it should return True, indicating that the letter is a consonant.
Your task is to create a function named is_it_a_consonant that takes a single character string as an argument and returns True if the character is a consonant, and False otherwise.
Enjoy your journey in discovering the consonants!
Examples
is_it_a_consonant('b') # Returns: True is_it_a_consonant('a') # Returns: False is_it_a_consonant('z') # Returns: True is_it_a_consonant('e') # Returns: False is_it_a_consonant('m') # Returns: True
Let's play with some letters and find out which ones are consonants!
Inputs
Arg 1:
"b"Expected Output
trueActual Output