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

Marcus andrews
Marcus andrews
1,223 Points

No idea what this means. is there a better way of trying to get help on tree rather than waiting for a response also?

as titled

breaks.py
def loopy(items):

for item in items:
    print(items)
Dmitriy Ignatiev
Dmitriy Ignatiev
Courses Plus Student 6,236 Points

Hi Marcus,

It is the function which takes only one argument named items and print out each item in your argument.

for example: a_list = [1,2,3]

loopy(a_list)

output: 1 2 3

1 Answer

Ari Misha
Ari Misha
19,323 Points

Hiya Marcus! Just replace your "items" in your "for" loop body with item coz you need to print out "item" alias variable, not "items" argument. And oh there is an issue with your indentation as well. Check your indentations and you're good to go. (: