for i in xrange(10): foo = '1' * i bar = int(foo) ValueError: invalid literal for int():