question about Z=[[x for y in range(1,2) if AList[x]==y] for x in range(0,5)]

Vincent Davis vincent at vincentdavis.net
Sat Jan 31 02:33:29 CET 2009


Z=[[x for y in range(1,2) if AList[x]==y] for x in range(0,5)]
I am not sure how to ask this but which "for" is looped first? I could
test but was wondering if there was a nice explanation I could apply
to future situations.

Thanks
Vincent Davis
720-301-3003



More information about the Python-list mailing list