4.Check Yourself.... What's wrong with my code?


print 'Welcome to the Pig Latin Translator!'

Start coding here!

original=raw_input("Enter a word")
if len(original) > 0:
print "You're writing"

 print "empty"

File "python", line 5
_ if len(original) > 0:_
_ ^_
IndentationError: unexpected indent


Make sure that if len(original) > 0: is not indented at all.


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