What am I doing wrong? Pyglatin Check Yourself!


It looks like my code is correct. What am I doing wrong?


Never mind. I figured it out! :smile:


What did to solve this. I' ve made the same mistake. Thank you


My code:

print 'Welcome to the Pig Latin Translator!'

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

I think, that it's because you're not setting original equal to the raw_input value


tagjumper42861 was right. Here is what is should look like!


My code isn't very well optimised, as I ended up modifying it with different error messages depending on whether it was invalid characters or zero length strings


Thank you a lot