title: How to replace multiple Numbers in single list in python
body: <p>i have a list say </p>
  
  <p><code>a= [1,2,3,4,5,7,1,2,3,1]</code></p>
  
  <p>i want to replace 1 with 10 in a.<br>
  so new list should be </p>
  
  <pre><code>[10,2,3,4,5,7,10,2,3,10]
  </code></pre>