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
sidni ahmed
3,329 Pointserror in shopping list
I keep getting syntax error on line 36. 'if index:'
1 Answer
Graham Mackenzie
2,747 PointsHey 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
howard lawler
10,579 Pointshoward lawler
10,579 PointsI think you're missing a ) at the end of line 35
also check line 19: = instead of ==