My goal is to combine some for loops.
for example,
v1=[1,2]
v2=[6,7]
for i,j in v1,v2:
print(i)
print(j)
It should be printed:
1
6
2
7
My goal is to combine some for loops.
for example,
v1=[1,2]
v2=[6,7]
for i,j in v1,v2:
print(i)
print(j)
It should be printed:
1
6
2
7
You can go:
for i in range(len(v1)): # Assuming both v1 and v2 are the same length.
print(v1[i])
print(v2[i])
Hope it helps.