here is my code and I run it while the result is that
Oops, try again. It looks like new_word contains "aaay" instead of "aay"!
so where the problem is? why I got a letter "a" twice?
THANKS A LOT!
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[1:] print new_word else: print 'empty'