can i have idea about that quiz?
help me please
# combo([1, 2, 3], 'abc') # Output: # [(1, 'a'), (2, 'b'), (3, 'c')]
Hi Gavin, you are correct, my bad, here is a different one
Hi Gavin, in most cases length has no meaning (unless you are doing some extra stuff in your code) here is a shorter way and even that can be written in a shorter way
def combo(l,r): return [(l[i],r[i]) for i in range(0,len(l))]
but it is better to understand your code/or others code than to make it shorter and not so "readable"
here is an example:
def combo(l,r): merged =  for i in range(0,len(l)): merged.append((l[i],r[i])) return merged