11. Testing, Testing, is This Thing On?


#1

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:

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

File "python", line 28
else:
^
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[0] 
    # 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"


#2

this comment:

""" If the word contains non-letter characters or if no word is entered, 'empty is printed. """

should be indented.


#3

Thank you very much stetim94


#4