Currently, your code is taking a slice of
This line needs to be refined into two lines ...
new_word = word +first + pyg [1:len(new_word)]
The first of the two lines would be ...
new_word = word +first + pyg
[1:len(new_word)] needs to serve as a slice specification. A slice of
new_word should be taken, and assigned to
new_word so that, in effect, the first character is removed.
The following statement takes a slice of
new_word, beginning at the second character, which has an index of
1, and ending with the final character, inclusively, and assigns the result to
new_word = new_word[1:len(new_word)]
Since the result has been assigned to
new_word, this will display it ...