I ain't know why it does accept my code without it can print correct ans? It tell me that i need to set variable "new_word" equal to the slice as well but i did not understand?? Please give me explanation in particular. Thanks much.
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 print original print new_word[1 : len(new_word)] else: print 'empty'