Skip to main content
1 of 3

Loops

In python you should rarely use while loops or for x in xrange(n) loops. Python has a wide variety of tools like zip, enumerate, itertools.* to iterate over pretty much anything with a for loop and an iterator.