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

Trackback error Shopping_list not defined. I'm confused.

Hello any and all, I have been trying to figure out this issue for a few hours and I am not sure where the issue is. Below I have a traceback error. Even when it does run Show_list is always blank. I'm at a lost.

Traceback (most recent call last):
File "/home/treehouse/workspace/shopping_list.py", line 36, in <module>
add_to_list(new_item)
File "/home/treehouse/workspace/shopping_list.py", line 16, in add_to_list
print(f"Item added! Cart has {Shopping_list} currently", len(shopping_list))
NameError: name 'Shopping_list' is not defined

NVM! so blind lol. I figured it out once I posted that error traceback. Had a Capital S on shopping list. Maybe this will help someone else so I will leave it up.

1 Answer

https://w.trhou.se/hf3x41z70o screen shot of my workspace