Posted By

magicrebirth on 12/22/09


Tagged

list String iteration for if


Versions (?)

Iterating over multiple sequences at the same time


 / Published in: Python
 

  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  

You need to login to post a comment.