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!

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 Python Collections (2016, retired 2019) Lists Shopping List Take Three

Swan The Human
Swan The Human
Full Stack JavaScript Techdegree Student 19,338 Points

When i run this and enter apples as the first item it shows the list but a blank list and my item isnt added

i run the code, enter apples, and it comes up with a blank list. like so...

Here's your list:

then if i enter apples again after that it will show up in position one. but THEN if i add oranges next it doesnt add to the list and just shows another prompt to enter another item. if i enter oranges again a second time it then adds APPLES to position 2 on the list. i am very confused as to why this would be happening

1 Answer

Steven Parker
Steven Parker
224,849 Points

You'll need to show your code to facilitate analysis, or better yet make a snapshot of your workspace and post the link to it here.