[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Functions help

On 23/02/2014 3:43 PM, Scott W Dunning wrote:
> I had a question regarding functions.  Is there a way to call a function multiple times without recalling it over and over.  Meaning is there a way I can call a function and then add *5 or something like that?

The same way you repeat anything in Python: with a loop construct.

     for _ in range(5):