grace way to repeat a function

Peter Abel p-abel at t-online.de
Sun Jan 19 16:26:34 EST 2003


"knightmare" <knightmare at ccxx.net> wrote in message news:<b0dr6o$lbi$1 at mail.cn99.com>...
> i'm finding a way to repeat a function.used to do like this:
> for i in range(1,10):
>     print "function"
> but i think this not graceful.anyone have good idea ?

Graceful or not is subjective.
The following could be graceful too -- or not ??

>>> print 'function\n'*10

Regards
Peter




More information about the Python-list mailing list