How could this be wrong? PygLatin 4/11


#1



The error says this: Your code looks a bit off. Check the Hint if you need help!


print 'Welcome to the Pig Latin Translator!'

# Start coding here!
raw_input("Enter a word:")

original = raw_input

if len(original) > 0
    print raw_input
    
else
    print "empty"


#2

These should be melded into a single statement ...

raw_input("Enter a word:")

original = raw_input

Here ...

if len(original) > 0
    print raw_input

... a colon is missing at the end of the if header, and you should output original instead of raw_input.


#3

if statements should end with a colon.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.