My code is:
pyg = ‘ay’
original = raw_input(‘Enter a word:’)
if len(original) > 0 and original.isalpha():
word = original.lower()
first = word
new_word = word[1:len(new_word)]
print new_word + first + pyg
On the bolded line, the code uses a slice statement, exactly as the tutorial specifies. This does work.
How can you slice new_word when it has no value until the assignment executes?