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


#1

print 'Welcome to the Pig Latin Translator!'

Start coding here!

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

else:  
 print "empty"

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


#2

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


#3

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