Conditions


# Program that tests to see if a letter is a vowel, consonant, or a specific letter.

# Creating the variables
letter1 = "m"
letter2 = "u"
letter3 = "y"

vowel = "aeiou" # what constitutes as a vowel

# Testing the variable, letter1
if letter1 in vowel:
    print(f"{letter1} is a vowel.")
elif letter1 == "y":
    print(f"{letter1} is a y.")
else:
    print(f"{letter1} is a consonant.")

# Testing the variable, letter2
if letter2 in vowel:
    print(f"{letter2} is a vowel.")
elif letter2 == "y":
    print(f"{letter2} is a y.")
else:
    print(f"{letter2} is a consonant.")

# Testing the variable, letter3
if letter3 in vowel:
    print(f"{letter3} is a vowel.")
elif letter3 == "y":
    print(f"{letter3} is a y.")
else:
    print(f"{letter3} is a consonant.")