I need to set a subset of a list to a specific value based on a tuple with bounds (start,end).
(start,end)
Currently I\'m doing this:
indexes = rang
>>> L = list("qwerty") >>> L ['q', 'w', 'e', 'r', 't', 'y'] >>> L[2:4] = ["foo"] * (4-2) >>> L ['q', 'w', 'foo', 'foo', 't', 'y']