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

Having trouble loading the contents of a file

I am trying out the extra credits for the shopping list app that we create in python basics. I am trying to save the contents of the shopping list onto a file i'm successful in saving the list, however I'm having trouble loading the saved contents back to the program. Actually the shopping_list LIST has the value loaded, but somehow it gets reinitialized to an empty LIST not sure why.

Heres the code https://w.trhou.se/0t7nf1eyzt

please help!! thanks in advance :)