Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

error in shopping list

I keep getting syntax error on line 36. 'if index:'

code: https://w.trhou.se/t9eguvv1ew

I think you're missing a ) at the end of line 35

also check line 19: = instead of ==

1 Answer

Hey Sidni,

Most of your code looks good! but the following things need fixing:

  • line 19 should contain a = instead of a ==
  • line 32 should contain a comma in quotes "," instead of a period "."
  • line 33 has one too many parentheses (( after input, it only needs one.

It should work if you fix those things (at least, it did for me. : ) I hope this helps!

Be Well, Graham