A question on modification of a list via a function invocation

Gregory Ewing greg.ewing at canterbury.ac.nz
Fri Sep 8 20:07:28 EDT 2017


Steve D'Aprano wrote:

> I don't think that talking about the average integer is meaningful.

We're not averaging the integers, we're averaging their numbers
of digits, which are natural numbers.

To do this rigorously you could write down an expression for
the average length of integers up to some finite N, and then
take the limit as N -> infinity. I haven't worked through
that, but I'd expect the sum to diverge.

-- 
Greg



More information about the Python-list mailing list