Accumulate , Range and Zeros

Chris Angelico rosuav at gmail.com
Sat Jul 13 08:24:31 EDT 2019


On Sat, Jul 13, 2019 at 10:02 PM Abdur-Rahmaan Janhangeer
<arj.python at gmail.com> wrote:
>
> @Thomas thought was a generator bug since instead of returning the usual
> nums it was returning 0 0 0 ...

When you find a bug or strange bit of behaviour, first make sure you
can reproduce it. Then create a small, self-contained program, just
enough to demonstrate what's going on. Post that code. Don't make us
guess :)

ChrisA



More information about the Python-list mailing list