How to print the merge elements from two lists in Python

1 Answer

0 votes
list1 = ['z', 'g', 'w', 'o', 'p']
list2 = ['k', 's', 'm', 'x', 'f']
list3 = []

for i in range(len(list1)):
    list3.append([list1[i], list2[i]])
    
print(list3)



'''
run

[['z', 'k'], ['g', 's'], ['w', 'm'], ['o', 'x'], ['p', 'f']]

'''

 



answered Apr 9, 2019 by avibootz

Related questions

...