Unit 4 Task 7 - Solution

Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.

Solution - Task 7: Is it a vowel?

← Back to task


One possible program:

def is_vowel(ch):
    return ch.lower() in "aeiou"

print(is_vowel("A"))
print(is_vowel("x"))