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 trialJoeseph Wolfe
Courses Plus Student 1,010 PointsNot sure howto resolve this challenge
I tried to resolve this one by setting up the loop like this: for item in items: if item == 'a': continue print(item)
This works in my interpreter so say if I create a list called item's and I have 'a' assigned to index[0], the if statement will skip it. However this is still giving me a bummer "Didn't find any items being printed...." WEIRD
def loopy(items):
# Code goes here
for item in items:
if item == 'a':
continue
print(item)
1 Answer
Russell Sawyer
Front End Web Development Techdegree Student 15,705 PointsHi Joeseph,
You are very close. The challenge is asking to iterate through the items unless the item with the index[] value of 0 is == to "a".
To check for the 0 index you need to use []. item[0]
def loopy(items):
for item in items:
if item[0] == "a":
continue
else:
print(item)