Most elegant way to do something N times
Chris Angelico
rosuav at gmail.com
Mon Dec 23 19:04:22 EST 2019
On Tue, Dec 24, 2019 at 10:45 AM Marco Sulla <elbarbun 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.
> >
>
> ??? 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?
>
File parsing. You read a section header and want to ignore that
section, so you ignore the next 15 lines.
ChrisA
More information about the Python-list
mailing list