I am new to programming, and am learning on Python 3.4. I am working on an exercise to determine if a user defined letter is a vowel or consonant.
My original if statement looked as follows:
letter = input('Enter a letter')
if letter == 'a' or 'e' or 'i' or 'u':
print('your letter is a vowel')
else:
print ('your letter is a consonant')
this returned that my letter was a vowel every time.
I have since learned the answer was to have an if statement that looks as follows:
if letter == 'a' or letter == 'i' or .......
My question is why did my original if statement return that it was a vowel every time, and not give me an error?
My though process is that it is verifying that it is a string.