I am receiving the message "Oops, try again. Your code did not run to end - see the console window for the error message." The error message is:
File "python", line 8 new_word = [1:len(new_word)] + first + pyg ^ SyntaxError: invalid syntax
I'm not sure why because I got the
[1:len(new_word)] part right from the instructions.
Here's my code:
pyg = 'ay' original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): word = original.lower() first = word new_word = [1:len(new_word)] + first + pyg print new_word else: print 'empty'
Thanks in advance!