I now wrote this code:
print 'Welcome to the Pig Latin Translator!' original = raw_input("Enter a word:") print original if len(original) > 0 and original.isalpha(): print original else: print "empty"
And the output was:
Welcome to the Pig Latin Translator!
Enter a word: 89
With the error message:
Oops, try again. It looks like your code prints original ("89") when original includes non-alphabetical characters.
Any errors in my code?