Check Yourself...Some More error message


File "python", line 7
if len(original) > 0 and .isalpha():
SyntaxError: invalid syntax

I also get the message, "Oops! Did you accidentally delete the variable named original?"

I think it should print "Enter a Word:" but I keep getting error messages. I've tried following adding an elif statement, as suggested for other posters, but that doesn't work either.

print 'Welcome to the Pig Latin Translator!'

original = raw_input("Enter a word:")
print original

if len(original) > 0 and .isalpha():
    print original
    print "empty"


in your if condition, you want to check original is a alphabetic character:


if you have a and keyword, you need to specify conditions at both sides of the and