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!
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
Michael Dinnall6,730 Points
Need help, got stuck for a while now. maybe i don't get the logic compltely
def loopy(items): for item in items: if item == "a": print item
def loopy(items): for item in items: if item == "a": print items
Hey Michael! The task is asking you to NOT print if the first char of item is 'a'. So, when the first char == 'a'. Skip it(continue). Else, print it. Here is how I solved it:
for item in items: if item == 'a': continue else: print(item)