What I'm really looking for is what piece of the puzzle you're missing so that I can say how I think you can find it yourself. The real problem isn't getting past the exercise, but learning how to do so.
Nobody really gets a straight answer on what's wrong from me (unless it's a super specific question), I'm all about addressing whatever is needed for that other person to figure it out themselves.
Usually, that starts with identifying the problem, so if that's not being done in the question, that's what I'll be nagging about!
So what you had here is that you did not see how that error message relates to your code. And I'd respond with that you should consider what your code is meant to do, and then test that. As a result you'd get some syntax error, and then you'd need to figure out how to make use out of that!