File "python", line 10
SyntaxError: invalid syntax
It gives me an error on the : in the [1:len(new_word)] i dont really see where i did wrong because i thought this shuld do its stuff. and i dont understand why the ":" is the problem because they used this as example in the lesson. someone any sugestions?
pyg = 'ay' original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): print original word = original.lower() first = word word = new_word [1:len(new_word)] else: print 'empty'