def function(arg): print arg let x = 1 while x < 1000000: function(arg=x) x++