(5. Check Yourself... Some more) what's wrong with my code [SOLVED]


print 'Welcome to the Pig Latin Translator!'

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

Oops, try again. It looks like your code prints original ("Enter a word:") when original includes non-alphabetical characters.


Is there an example in the lesson text on how to get and store user input? Check the usage.

That print token looks a little out of place and incomplete. What have we learned about indented body statements inside a branch?


yeah, you're right! thanks :slight_smile:


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