Struck in Pyglatin topic


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?


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


Thanks sir! Working fine now.