On Sep 26, 2007, at 3:25 PM, [EMAIL PROTECTED] 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®
[EMAIL PROTECTED]
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


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

Reply via email to