#!/usr/local/bin/python2 l1 = range(10) l2 = range(10) l3 = range(20) g = 5 for i in xrange(100000): #[e for e in l3][g] for e in l1: e for e in l2: e