Python

From Elvanör's Technical Wiki
Revision as of 07:32, 13 June 2008 by Elvanor (talk | contribs) (New page: == Useful techniques == * To iterate over two lists at the same time, use the zip built-in function: for a,b in zip(list1, list2):)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Useful techniques

  • To iterate over two lists at the same time, use the zip built-in function:
for a,b in zip(list1, list2):