I have a code understanding problem related to python:
def convex_hull(pts):
"""Returns the points on the convex hull of pts in CCW order."""
for m in (2 ** (2 ** t) for t in xrange(len(pts))):
hulls = [_graham_scan(pts[i:i + m]) for i in xrange(0, len(pts), m)]
//more code
I can't figure out how are those two 'for' supposed to work.
Sadly the command reference doesn't show such an usage example, and I can't really tell if it -really- means that one for is the left side assignment of the other?
Additionally, what could the bottom assignment possibly mean? Does the 'for' statement return a value?!?!
Thanks and sorry for the beginner question.