grace way to repeat a function

Peter Abel p-abel at
Sun Jan 19 22:26:34 CET 2003

"knightmare" <knightmare at> wrote in message news:<b0dr6o$lbi$1 at>...
> 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


More information about the Python-list mailing list