What am I doing wrong? Pyglatin Check Yourself!


#1

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


#2

Never mind. I figured it out! :smile:


#3

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


#4

My code:

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"

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


#5

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


#6

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


#7

Thank you a lot

Heading

:+1: