#!/usr/local/bin/python2 l1 = range(10) l2 = range(10) l3 = range(21) g = 5 j = 0 for i in xrange(100000): #[e for e in l3][g] for e in l3: if j == g: r = e else: e r