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 trialMarcus andrews
1,223 PointsNo 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
def loopy(items):
for item in items:
print(items)
1 Answer
Ari Misha
19,323 PointsHiya 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. (:
Dmitriy Ignatiev
Courses Plus Student 6,236 PointsDmitriy Ignatiev
Courses Plus Student 6,236 PointsHi 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