Hello! I'm not quite sure if I'm following the instructions. I submitted the following code to the console today:
pyg = 'ay' print "Welocme to the PygLatin translator!" original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): word = original.lower() first = word new_word = [1:len(new_word)] else: print "empty"
Then, I got the following error message:
File "python", line 8
new_word = [1len(new_word)]
SyntaxError: invalid syntax
The instructions said I should use the function returning an error to "Set new_word equal to the slice from the 1st index all the way to the end of new_word" so I'm not quite sure I'm following the instructions right. Please help!