title: append/insert a value/string to a list element dynamically in Python?
body: <pre><code>my_list = ['cat','cow','dog','rabbit']
  </code></pre>
  
  <p>but what I want is  to append/insert a character(or string) to one or more element(not all).</p>
  
  <p>something like</p>
  
  <pre><code>my_list = ['cat','cow_%s','dog_%s','rabbit']%('gives milk','bark')
  </code></pre>
  
  <p>now updated list should look like</p>
  
  <pre><code>my_list = ['cat','cow_gives milk','dog_bark','rabbit']
  </code></pre>
  
  <p>one way is to do this is manually change/update the element one by one
  e.g <code>my_list[2]=my_list[2]+"bark"</code></p>
  
  <p>but I don't want that because my_list is long(around 100s element ) and 40+ need to be changed dynamically. </p>
  
  <p>In my case It is like </p>
  
  <pre><code>my_list = ['cat','cow_%s','dog_%s','rabbit']
  for a in xyz:   #a is a string and xyz is a list of string 
        my_list=my_list%(a,a+'b')
        fun(my_list)
  </code></pre>