Python Python Collections (2016, retired 2019) Tuples Combo

Adam Tyler
Adam Tyler
14,865 Points

Claims "can't find name of function"

This function works fine in workspaces, but won't let me pass the challenge?
# Output:
# [(1, 'a'), (2, 'b'), (3, 'c')]

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

    for i in range(len(x)):
        tup_lis.append((x[i], y[i]))

    return tup_lis

1 Answer

Haisam Elkewidy
Haisam Elkewidy
26,987 Points

You have 'tup_lis' mentioned twice in the code. Change both of them to 'tup_list' and that should fix your problem.