accumulators

Eugene Van den Bulke eugene at boardkulture.com
Sat Jun 12 16:53:02 EDT 2004


Paul Rubin wrote:
> Peter Otten <__peter__ at web.de> writes:
> 
>>Should be
>>
>>    a = accum(3)    # create accumulator holding 3
>>    print a(2)  # prints "5"
>>    print a(3)  # prints "8"
>>    print a(1)  # prints "9"
> 
> 
> Oops, yes.

thank you !!!



More information about the Python-list mailing list