Most elegant way to do something N times
Marco Sulla
elbarbun at gmail.com
Mon Dec 23 18:12:25 EST 2019
>
> I encounter with cases like doing a function 6 time with no argument, or
> same arguments over and over or doing some structral thing N times and I
> dont know how elegant I can express that to the code.
>
??? Excuse me, but why you needed to call the same function SIX times? This
seems to me not elegant in primis.
Can you give us a practical example?
On Sun, 22 Dec 2019 at 21:38, Batuhan Taskaya <isidentical at gmail.com> wrote:
> I encounter with cases like doing a function 6 time with no argument, or
> same arguments over and over or doing some structral thing N times and I
> dont know how elegant I can express that to the code. I dont know why but I
> dont like this for _ in range(n): do() thing. Any suggestions?
> --
> https://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list