Please repost the code. It is lacking indentations. All statements should not start in the first column.

Also copy and paste the contents of the text file. It's not possible to copy anything...