I'm no expert but these kinds of errors are really easy to spot when you have an editor (such as vim) that uses colours to show what your code is doing. I.e. red = quoted strings, yellow = statements like print, dark blue = comments and light blue = variables.