On PygLatin, I got to the end with no problems. The code does work-ish. But the first time I tried it, I tried the word bird. It said error. A little tweak and then I tried using dog. In this case it properly formatted the word bird. I typed in dog and it gave me irdbay (for bird) instead of ogday (for dog). And it has done that with all the words I have tried, it gives me the previous word. I got pass it by trying the same word twice, but I want to know if it was just a glitch or if it was an error with the code?
print "Welcome to the Pig Latin Translator " pyg = 'ay' new_word = word[1:len(new_word)] + first + pyg original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): word = original.lower() first = word else: print 'empty' print new_word