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 trialHenry Moreno
1,086 PointsI am at a standstill def loopy(items): # Code goes here skip an item ... but why would it skip "b" "c"
def loopy(items): # Code goes here
skip an item ... but why would it skip "b" "c" in the instruction have nothing to do with bc.
Here they are
y loopy function needs to skip an item this time, though. Loop through each item in items again. If the character at index 0 of the current item is the letter "a", continue to the next one. Otherwise, print out the current member. Example: ["abc", "xyz"] will just print "xyz".
Which module aludes to this ...//
iI would think that it would print "bcxyz"
not just xyz ???
Not understanding this one HELP !!
def loopy(items):
# Code goes here
1 Answer
Steven Parker
231,275 PointsYou might see "bc" if you were modifying the first item, but the instructions say to skip any item that meets the crteria entirely. So since "abc" starts with "a", it will be skipped and no part of it will be printed.