Delete values from a string using the index
Bjoern Schliessmann
usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Wed Sep 26 16:42:00 EDT 2007
koutoo at hotmail.com wrote:
> How do I delete or remove values from a list or string using the
> index.
>
> If a = [1,2,3,4,5,6,7,8] and I want to get rid of 1 -5, how would
> I do that?
del a[0:5]
Be sure to check out the relevant section of the Python tutorial.
http://docs.python.org/tut/node7.html
Regards,
Björn
--
BOFH excuse #31:
cellular telephone interference
More information about the Python-list
mailing list