Check yourself


#1

why is it saying have you accidentally deleted original on the syntax error but on the top right corner it says theirs a different error and i'm getting confused and i don't know what to do

this is my code

print 'Welcome to the Pig Latin Translator!'

Start coding here!

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

hope someone cold help me


#2

Remove the first print statement, for starters. Now move the else to its own line, with no indent, and be sure to include a colon,,,

if ____:
    print original
else:
    print "empty"

#3

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