0
votes
list1 = []

list2 = []

lists to tuple Using map() and lambda

def listOfTuples(l1, l2): 
    return list(map(lambda x,y:(x,y), l1, l2))

print(listOfTuples(list1, list2))

how to pass 1/2 tuple to an argument as param1 & param2?

What are you trying to call? What are param1 and param2 (you never show them in any code)? And why are you using map? map(lambda x, y: (x, y), l1, l2) is a slow, ugly way to write zip(l1, l2).ShadowRanger