How to repeat an action in Python
<p>I want to repeat an action for n times. I've tried "if" but it does not work. </p>

<pre><code>If actiontimes == n:
    Print text*n
</code></pre>

<p>Thanks for any advice</p>

<p>You have to write:</p>

<pre><code>for x in range(times):
    #action to repeat
</code></pre>

python