6.PygLatin 10/11 Pyglatin Ending up
File "python", line 9
new_word = [1:len(new_word)]
SyntaxError: invalid syntax
I expect it to just work correctly
Replace this line with your code. 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)] print new_word else: print 'empty' At the new_word =[1:len(new_word)] it says that the : between 1 and len is invalid syntax what's wrong with my Code?!?