Hello everyone! I made a syntax error in the program to translate a word to PygLatin but I don't see it. The error is in the second last line. Here is my code:
File "python", line 28
SyntaxError: invalid syntax
# This program will translate any word into Pig Latin! """ Pig Latin: take the first letter of the word and put it at the end, then add ay. """ pyg = 'ay' # The user of this transaltor is aked to enter a word: original = raw_input('Enter a word:') """ If the user enters a word which contains letters only, it will be translated: """ if len(original) > 0 and original.isalpha(): word = original.lower() # Transforms capital letter into small first = word # This is the first letter of the word given by the user new_word = word + first + pyg """ We add the first letter and 'ay' to the word, this gives us a new word """ new_word = new_word[1:len(new_word)] # We take out the first letter of the word print new_word """ If the word contains non-letter characters or if no word is entered, 'empty is printed. """ else: print "empty"