PygLatin 4. Check YourSelf


#1




I cannot find any mistakes in my code !!! but they say,

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


can anybody help me...


print 'Welcome to the Pig Latin Translator!'

# Start coding here!
original =raw_input("Enter a word:")
    if len(original) > 0:
        print original
    else:
        print "empty"


#2

Unindent this line and you should be good to go!


#3

Unindent

All of this once. Just highlight it and press Shift + Tab.


#4

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