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 trialOszkár Fehér
Treehouse Project Revieweri remade my code and this one it's not excepted too. why?
i am confused, i made to different codes and non of them is excepted, it's me who see the quiestion differntly or i am not for this....
# combo([1, 2, 3], 'abc')
# Output:
# [(1, 'a'), (2, 'b'), (3, 'c')]
def combo(*args):
az_en_listam = []
count = 0
for a, b in args:
for x in b:
az_en_listam.append((a[count], x))
count +=1
return az_en_listam
1 Answer
Christopher Shaw
Python Web Development Techdegree Graduate 58,248 PointsTo put you on track, the question says Create a function named combo that takes two ordered iterables. As it tells you the number of arguments, do not use *args (this is for when you do not know the number of arguments).
Start with something like:
def combo(number_list, character_string):
az_en_listam = []
count = 0
for number in number_list:
Oszkár Fehér
Treehouse Project ReviewerOszkár Fehér
Treehouse Project Revieweri do my best to create on my on the codes and i relly like what i do here but i see that i doing it wrong all the time....