I input a word 'pcman'
Therefore, I got 'pcmanpay' as my new_word.
I don't get why it is new_word[1:len(new_word)] instead of new_word[1:len(new_word)-1] as the final output since 'pcmanpay' has 8 letters and the len() should return 8.
I know that len() returns 7 after testing but I wanna know why.
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 = new_word[1:len(new_word)] print new_word else: print 'empty'