Delete values from a string using the index
Erik Jones
erik at myemma.com
Wed Sep 26 16:43:46 EDT 2007
On Sep 26, 2007, at 3:25 PM, 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?
>
> Thanks.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>>> l = [1, 2, 3]
>>> del l[1]
>>> l
[1, 3]
Erik Jones
Software Developer | Emma®
erik at myemma.com
800.595.4401 or 615.292.5888
615.292.0777 (fax)
Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com
More information about the Python-list
mailing list