function that counts...

Grant Edwards invalid at invalid.invalid
Thu May 20 12:39:38 EDT 2010


On 2010-05-20, superpollo <utente at esempio.net> wrote:
> Steven D'Aprano ha scritto:
>> On Wed, 19 May 2010 21:58:04 +0200, superpollo wrote:
>> 
>>> ... how many positive integers less than n have digits that sum up to m:
>>>
>>> In [197]: def prttn(m, n):
>> 
>> Does the name "prttn" mean anything? I'm afraid I keep reading it as a 
>> mispelling of "print n".
>
> pArtItIOn

One might be tempted to suggest the name "partition".

This isn't Fortran-IV. ;)

-- 
Grant Edwards               grant.b.edwards        Yow! I've got a COUSIN
                                  at               who works in the GARMENT
                              gmail.com            DISTRICT ...



More information about the Python-list mailing list