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 (Retired) Shopping List Shopping List Project

true is not defined

True is not defined on line 6 :

shopping_list = list()

print ("What do you want from the shop? ")
print ("Enter 'DONE' when finished adding items.")

while true:
  new_item = input("< ")
  if new_item == 'Done':
    break
    shopping_list.append(new_item)
    print ("Added: List has {} items.".format(len(shopping_list)))
    continue


print ("Here's your list")
True

, not

true

(you must use a capital T on true)

Hope it helps! Happy coding! ~xela888

1 Answer

Does it need a capital T on True:?

Steve.