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 Python Basics (2015) Shopping List App Shopping List Introduction

Steven Reich
Steven Reich
395 Points

which code editor would the shopping_list.py file be run in, I have been using python shell and sublime text 2?

I ran it on both and got error messageshopping_list = []

print("What should we pick up at the store?") print("Enter 'DONE' to stop adding items. ") while True: new_item = input("> ")

shopping_list.append(new_item)

print("Here's your list:") for item in shopping_list: print(item)

What error is being raised?

shopping_list = []

print("What should we pick up at the store?") 
print("Enter 'DONE' to stop adding items. ") 

while True: 
    new_item = input("> ")
    shopping_list.append(new_item)
print("Here's your list:") 
for item in shopping_list: 
    print(item)

1 Answer

I use the program "Wing IDE", and it ran the script perfectly. Hope it helps