Q:

Write a Python program to iterate over two lists simultaneously

0

Write a Python program to iterate over two lists simultaneously.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

num = [1, 2, 3]
color = ['red', 'white', 'black']
for (a,b) in zip(num, color):
     print(a, b)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now