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 else: print "empty"