Pig latin check yourself


#1

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"

What is wrong?


Python pig latin check yourself
#2

your else is wrongly indented, it should have the same indent level as the if statement


#3

Your indentation, it should be

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"

#4

Thanks it worked!!:sunglasses: