Stuck at 4/11 - Code not working


#1

EDIT: I figured it out, never mind :wink:

This is my code.

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

I checked and rechecked and I can’t find anything wrong, but whenever I click “Run”, it says

File “python”, line 7
else
^
SyntaxError: invalid syntax

Please help!


#2

Mix of tabs and spaces. The first indent has 8 spaces, the second 1 tab. Switch both the either 2 or 4 spaces.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.