I'm trying to combine lists to produce a result like this: [a, 1, b, 2, c, 3] but i can't get it to work. Can u tell me what's wrong/show me how to do it?
def newList(a, b):
tmp = []
tmp.append(zip(a, b))
return tmp
a = ['a', 'b', 'c']
b = [1, 2, 3]
print(newList(a, b))
I get only zip object at 0x0449FE18 as a result.