File "python", line 9
new_word = [1:len(new_word)] + first + pyg
SyntaxError: invalid syntax
I'm not sure what I'm doing wrong, could someone please explain it to me?
pyg = 'ay' original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): word = original.lower() first = word new_word = word + first + pyg new_word = [1:len(new_word)] + first + pyg print new_word else: print 'empty'