According to codecademy, the correct python if/else statement goes like this
if statement : print "the statement is true" else: print "the statement is false"
and it works, but when i do this:
print 'Welcome to the Pig Latin Translator!' original = raw_input("Enter a word:") if len(original) > 0 : print original else: print "empty"
it says the
else is a syntax error?
answers will be much appreciated