Functions help

alex23 wuwei23 at gmail.com
Sun Feb 23 19:55:20 EST 2014


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):
	func()


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /