Pyglatin - Check Yourself... Some More



When I include text and a number I receive the following error:
Oops, try again. It looks like your code prints original ("hello1") when original includes non-alphabetical characters.

I was expecting to receive no error message...


print 'Welcome to the Pig Latin Translator!'

original = raw_input("Enter a word:")
print original
if len(original) > 0 and original.isalpha():
    print original
    print "empty"

Can someone help?


You have two print original(s), delete the print original right before your if statement (keep the one after your if statement)


Gah! I had the same thing, only with a print name - as the previous exercise required.... was going around and around thinking .isalpha was borked.

Thank you.


No problem :slight_smile: I remember asking close to the same question and another guy gave me that answer :slight_smile: So you can give me credit for my memory :slight_smile:


thank you sooooooooooooooooooooooooooooooooooooooooooooooooooo much


Np problem, glad to be of some assistance :slight_smile: