Iterating over multiple sequences at the same time


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  1. for i, j, q in [1, 2, 3], [4, 5, 6], [7, 8, 9]:
  2. print 'i =', i
  3. print 'j = ', j
  4. print 'q =', q

Report this snippet


Comments


You need to login to view comments.