With the code below, no matter what the first letter of the input is, it is always determined as a vowel:
original = raw_input(\"Please type in a word: \")
f
Python is not the English language. If you have a bunch of expressions with or
or and
between them, each one must make sense on its own. Note that on its own:
if "e":
print("something")
will always print something
, even if letter
doesn't equal "e"
.
You need to do it like this:
if letter == "a" or letter == "e" # (...)
Or, more concisely:
if letter in "aeiouy":