A possibile first solution:

>>> alist = ['a','b','c','e','d','f']
>>> inf, sup = 2, 4
>>> alist[inf:sup] = ["t"] * (sup - inf)
>>> alist
['a', 'b', 't', 't', 'd', 'f']

Bye,
bearophile

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to