Check Yourself, I've done it too many times


please help, here is my code:

print 'Welcome to the Pig Latin Translator!'

original = raw_input ("Enter a word:")

if len(original) > 0:

print original


print "empty"

it says
"File "python", line 9
SyntaxError: invalid syntax"

Please help me out!


This is most likely an indentation error.


Hi you shouldn't indent the else statement


U should remove some tabulates before else
something like this

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


A post was split to a new topic: Confused where the original.isalpha(): came from