title: Python - set list range to a specific value
body: <p>I need to set a subset of a list to a specific value based on a tuple with bounds <code>(start,end)</code>.</p>
  
  <p>Currently I'm doing this:</p>
  
  <pre><code>indexes = range(bounds[0], bounds[1] + 1)
  for i in indexes:
     my_list[i] = 'foo'
  </code></pre>
  
  <p>This doesn't seem good to me. Is there a more pythonic approach?</p>