title: Multiplying a string with a number results in "TypeError: can't multiply sequence by non-int of type 'str'"
body: <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 <code>n</code> 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 (<code>.py</code> file), then the program aborts with an error saying<br />
  <code>can't multiply sequence by non-int of type 'str'</code></p>
  <p>Any way to fix this?</p>