click the Markdown Cheatsheet link just under the textfield to see how to format the code.

Sashi Shah

2,528 Points

Sashi Shah

Sashi Shah

2,528 Points

July 9, 2017 7:14am

Looks like it may be an indent issue. Your code works for me--it doesn't print DONE.

shopping_list=[]print("What should we pick up at the store?")print("Enter 'DONE' to stop adding items.")whileTrue:new_item=input("> ")ifnew_item=='DONE':breakshopping_list.append(new_item)print("Shopping List:")foriteminshopping_list:print(item)

Akshay Kap

689 Points

Akshay Kap

Akshay Kap

689 Points

July 14, 2017 9:34am

your code is working absolutely fine
make sure you are typing DONE , all letters capital