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 (Retired) Tuples Combo

Grant Kropf
Grant Kropf
3,421 Points

The interpreter keeps saying "Where's combo?". I am having some kind of error with my combo() function. Why?

See title

2 Answers

Vittorio Somaschini
Vittorio Somaschini
33,371 Points

Hello Grant.

We need to see the code to spot where it's wrong, please paste your code.

Thanks

Vitto

Chris Freeman
Chris Freeman
Treehouse Moderator 68,441 Points

Hi Vittorio, may I suggest that you use a comment for clarifications such as asking for additional information. By using an Answer, the post looks like it has been answered and might not get the review it needs because the answer count is no longer 0. Thanks! --Chris

Grant Kropf
Grant Kropf
3,421 Points

Here was the correct answer. Sorry, I checked the box to include my code, but for some reason it didn't include my code in the post.

def combo(x,y):
  new_list = []

  for x,y in zip(x,y):
    new_tuple = (x,y)
    new_list.append(new_tuple)

  return new_list
Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,441 Points

It may be an indention issue or missing the keyword def. Make sure your combo() function starts at the first column on the line, and includes two parameters for the iterables:

def combo(iter1, iter2):
    # your code here