10 ending up


#1

i tried to make it like
new_word=new_word[1:]
but still it doesnt work.
help me plzz!!! tks a lot :v cheers xD


#2

For your new_word you need to take the word from the [second position : to the (end of the word)] + first + pyg. Then print the new word.

As written, your code, with the input "test" would print "testtay". How could you change your code to remove the first letter?

Here is one version of new_word which functions correctly:

new_word = word[1:len(word)] + first + pyg

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.