Hi ladies and gents,
I am getting an error in my code. Can you help me out please?
Here is my code:
print "Welcome to Anna's Pig Latin Translator" pyg = 'ay' original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): word = original.lower() first_letter = word new_word = word + first_letter + pyg new_word = new_word[1:] print new_word else: print 'empty'
The error is get is this: File "python", line 15
SyntaxError: invalid syntax
I would like to make another comment. It would be helpful to have a python cheat list (like a list of all the codes we have learned, somewhere on the site so that we can refer back to it when we forget something)