Multiplying a string with a number in python
<p>I need a string consisting of a repetition of a particular character.At the python console, if i type :</p>

<pre><code>n = '0'*8
</code></pre>

<p>Then n gets assigned a string consisting of 8 zeroes,which is what i expect.</p>

<p>But, if i have the same in a python program (.py file), then the program aborts with an error saying 'can't multiply sequence by non-int of type 'str''</p>

<p>Any way to fix this ?</p>

<p>Thank You</p>
