Week 2 Practice lab Q1

I’m getting following error (my last statement) . I can’t figure out what’s wrong with it.

return total_cost
SyntaxError: invalid syntax


Hello @sbismil ,

Welcome to the community!!

Few possible reasons of the error you posted:

  1. Missing or misplaced colons
  2. Missing parentheses or quotation marks
  3. Invalid characters or typos

Kindly recheck your code keeping mind the above.

With regards,
Nilosree Sengupta

1 Like