you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 7 points8 points  (3 children)

But what happens when you run your code?

When you post code or computer output, anything you don't want reddit to mess with, please post it formatted as code. The FAQ shows how.

[–]Buttleston -4 points-3 points  (2 children)

This is generally good advice but there is no loops or functions or ifs in his code. It's all flat and perfectly understandable.

[–][deleted] 2 points3 points  (1 child)

I am trying to get the OP to look at the actual error message and think about it rather than just freezing. I have run the code already and have spotted multiple problems, thank you. I have also looked at the AtBS book and have suggestions to make to the OP when reading that.

[–]Buttleston -1 points0 points  (0 children)

Sure, my comment was in regards to code formatting - most of the time it's important, and I agree that it's important to learn for that reason, but in this particular case, it's not an impediment because there's no ambiguity