Mark Dickinson ha scritto:
On May 19, 9:30 pm, superpollo <ute...@esempio.net> wrote:René 'Necoro' Neumann ha scritto:An idea would be:def prttn(m, n):... return sum(1 for x in range(n) if sum(map(int, str(x))) == m)TypeError: 'int' object is not callableon 2.5.4The TypeError is almost certainly because you've created a integer 'sum' variable in your script/interpreter session, hiding the built-in sum function.
thx -- http://mail.python.org/mailman/listinfo/python-list