How to print the corresponding elements from two lists in Python

1 Answer

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

for ch1, ch2 in zip(list1, list2):
    print(ch1, ch2)



'''
run

z k
g s
w m
o x
p f

'''

 



answered Apr 9, 2019 by avibootz
...