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 trialDustin Jasmin
3,156 PointsCombo Challenge
I do not know how this challenge works at all. Can anyone help?
# combo([1, 2, 3], 'abc')
# Output:
# [(1, 'a'), (2, 'b'), (3, 'c')]
def combo(first_iterable, second_iterable):
1 Answer
Oszkár Fehér
Treehouse Project ReviewerHi Dustin. Please give it a try first and after post your code and from there we can help you out. We could write to you the code but like that we don't help you to learn, just to pass the quiz. Give it a try, whatever you can write. If you are still stucked, give me a feedback and we continue from there. Happy coding.
Dustin Jasmin
3,156 PointsDustin Jasmin
3,156 PointsI have a question. When I was looking through the community posts, many made a variable and set it equal to 0 and then made a for loop where they then made the variable +=1, why is that so?
Chris Freeman
Treehouse Moderator 68,441 PointsChris Freeman
Treehouse Moderator 68,441 PointsDustin Jasmin, what you describe is creating a loop counter that is incremented during each iteration of the loop.