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 Break

Task 2 List introducction

Hi I dont know why I keep getting Bummer! for this code, thanks!

breaks.py
def loopy(items):
    # Code goes here
if item == 'STOP':
    break 
print(items)

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! I feel like you were on the right track to begin with, but something happened along the way. So I'm going to give some hints:

  • The for loop you wrote in step one is now completely missing
  • You should be printing each separate item in items... not items
  • Your indentation is off. Everything should be indented inside the function

Hope this helps, but let me know if you're still stuck! :sparkles: