Syntax error


#1



https://www.codecademy.com/courses/python-beginner-2W5v7/1/4?curriculum_id=4f89dab3d788890003000096#


Hello,
I am having trouble with this excercise as it is giving me a syntax error.

File "python", line 9
new_word=[1:len(new_word)]
^
SyntaxError: invalid syntax

The ^ symbol points to the colon
My code is attached below, please help
Thanks


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 original
else:
    print 'empty'


#2

You're not printing original, you're printing new_word. Also this line

needs to be new_word = new_word[1:len(new_word)]


#3

Thanks, Garret

I guess I made a stupid mistake.


#4

Are you kidding me? You have no idea how many posts I had to read to figure out how to beat that level the first time I did the exercise :joy: There are no stupid mistakes bro, only learning opportunities.