C1 W2 invalid syntax

{moderator edit - solution code removed}

Can someone help, please?
I got this message in Exercise 5 and cannot submit my Assignment, because I am getting errors until the end.
Thanks a lot in advance!

When you get an error at the beginning of a line like that, look at the previous (non-comment) line. The parentheses don’t match on your cost line: there are 11 open parens, but only 10 close parens. You can use the notebook editor to check your delimiters.

Also please note that you filed this under General Discussion. You’ll have better luck if you file it under the correct course. I moved it for you.

1 Like

Thank you very much!