title: Define a function to multiply a string by number using python
body: <p><img src="https://i.stack.imgur.com/XuZ75.png" alt="enter image description here"></p>
  
  <p>the code is not working on local Python</p>
  
  <p><img src="https://i.stack.imgur.com/eYoGT.png" alt="enter image description here"></p>
  
  <p>but it runs fine in online jupyter notebook.</p>
  
  <p>why is this happening? thanks a lot</p>