Hey guys, I made this translator which converts regular words int pig latin which basically is taking the first letter putting it at the end of the word and adding "ay" now this is the script:
ok its works 100% however the professor wants something very specific that I don't quite understand and I really need help because its killing the cells!!!!
This is what he said: "It looks like you printed the correct translation of "dog", but make sure to set new_word equal to the slice as well."
"dog the word i had put in to translate?" it came out "ogday"
Now I don't understand what that means??? does he mean make another variable called "new_word" again and equal it to the list of the slice???
Code
pyg = 'ay'
original = raw_input('Enter a word:')
if len(original) > 0 and original.isalpha():
print original
word = original.lower()
first = word[0]
new_word = word + first + pyg
print(new_word [1:len(new_word)])
else:
print 'empty'ok its works 100% however the professor wants something very specific that I don't quite understand and I really need help because its killing the cells!!!!
This is what he said: "It looks like you printed the correct translation of "dog", but make sure to set new_word equal to the slice as well."
"dog the word i had put in to translate?" it came out "ogday"
Now I don't understand what that means??? does he mean make another variable called "new_word" again and equal it to the list of the slice???

