Code is behaving fine, no errors are coming up. BUT it doesn't actually do the Piglatin thing. If I take the pyg variable out there is no change.
So I type in "Pollyanna" and enter it.
What comes up is "Pollyanna"
Anyone else have this issue?
pyg = 'ay' original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): word = original.lower() first = word new_word = word + first + pyg new_word = word[1:len(new_word)] + first + pyg print original else: print 'empty'