Check Yourself!


Seems to be taking issue with the syntax re: the ‘else’ statement - any thoughts? Thanks very much in advance.

<original = raw_input("Enter a word: ")
if len(original) > 0:
  print original
    print "empty"

 File "python", line 8
SyntaxError: invalid syntax>


else should be after if, not nested inside if, so else should have the same indent level as if


Ahhh you genius, thanks again.