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 trial

Python Python Collections (2016, retired 2019) Tuples Combo

I'm always the last to know, or figure it out... or something. Create a function named combo,

One of the things about combo that seemed to be a trip up, was getting the two iterables, to iterate correctly. I would get out put like (1, abc) (2, abc) etc... I'm starting to get that when something like that happens, It's time to use some kind of index. I don't get why they don't iterate properly, I don't remember it being talked about in the course, but I think now I will remember it. Using the index from one iterable, to coax the other iterable through the iteration. It's seems pretty clever to me. Apparently enough people figured it out with out much trouble so that people like me could comb over their code, staring...smoke starting to come out my ears, gears grinding... I might not understand it, but the next time it happens, I will remember. Assign an index from the iterable that IS iterating properly, to the iterable that is not. I love the learning process.