Answers for "2 for loops together in python"

17

python loop two

for f, b in zip(foo, bar):
    print(f, b)
Posted by: Guest on March-30-2020
1

run 2 loops simultaneously python

// LOOPING SIMULTANIOUSLY
for (i,j) in zip(range(12,20),range(22,30)): 
	print(i,j)
Posted by: Guest on June-18-2021

Python Answers by Framework

Browse Popular Code Answers by Language