The question was merge two list index wise eg:
a = [ab,bc,cd]
b = []
expected output:
ans = [ab,bc,cd]
I have tried this
a = input("enter the list 1:")
list1 = a.split(",")
b = input("enter the list 2:")
list2 = b.split(",")
if list2 == EMPTY_LIST:
print(list1)
else:
res = [i+j for i, j in zip(list1,list2)]
print("Ans: ",res)
but the output is
enter the list 1:abi,ajith
enter the list 2:
Ans: ['abi']
expected output i need
enter the list 1:abi,ajith
enter the list 2:
Ans: ['abi','ajith']