this is my code
pyg = 'ay'
original = raw_input('Enter a word:')
word = original.lower()
first = word
new_word = word+first+pyg
if len(original) > 0 and original.isalpha():
I run my code, but the translation is not correct! Because the part that disappear the first word is missing, for example, if I write the word python in my code the translation will be pythonpay. What is wrong must be the ythonpay. I do not know what function i should write to desappear the first word of the letter!
i saw an user doing in this way ,in the line 5 instead of writing "new_word = word+first+pyg" he wrote "new_word = word[1:]+first+pyg" and it work ! but i dont know how works this function can someone explain to me ?