File "python", line 13
if len(original) > 0
SyntaxError: invalid syntax
Was the error I was given, but it told me I completed the exercise. Also, I don't understand why the syntax is incorrect.
I expected for me to fail, but for whatever reason it passed me. Is this normal?
""" This will ask for a word, and set up the variables required for translation. Line 12: Asks for a word. Line 13: Confirms there is a word. Line 14: Sets the variable for addition to the end of the word. Line 15: Sets the variable for the first letter to be moved to the end. Line 16: Sets the variable for the letters after the first one. Line 17: Conversion to piglatin. Line 18: Prints translated word. Line 19-20: Prints line to let us know word was invalid. """ original = raw.input("Please input a word for translation") if len(original) > 0 pyg = "ay" first = original  second = < original  new_word = %s + %s + %s / (second, first, pyg) print new_word else: print "No word was found"