Struck in Pyglatin topic


#1


Check Yourself!


Else if statement isn't giving proper output


The program should have run but showing invalid syntax


print 'Welcome to the Pig Latin Translator!'

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


How to proceed? What went wrong?


#2

the indention of your else is wrong, else should have not been nested inside the if


#3

Thanks sir! Working fine now.