Stuck on PygLatin Exercise 10


The instructions for this exercise say to assign [1:len(new_word)] to the variable "new_word", however when I do so it gives the following error message:
File "python", line 9
new_word = [1:len(new_word)]
SyntaxError: invalid syntax

Can someone explain to me what I could be doing incorrectly? I'll include a copy of the code I've written thus far below:

pyg = 'ay'
original = raw_input('Enter a word:')

if len(original) > 0 and original.isalpha():
word = original.lower()
first = word[0]
new_word = word + first + pyg
new_word = [1:len(new_word)]
print new_word
print 'empty'


Be sure to include the object to be sliced...

object = object[ ... ]


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