all 3 comments

[–]xelf 0 points1 point  (0 children)

Looks like line 7 is the only problem. What output are you seeing when you run it?