Make xrange iteration more efficient by only testing an updated counter when
obtaining each new value instead of testing if the value is within the range.
1a=4 2 3deff(x): 4ifnotx: 5defg(y): 6returnx,y,a 7returng# UnboundLocalError: not defined if x is true 8 9result=f(1)(2) 10assertresult==(1,2,4)