[EMAIL PROTECTED] a écrit :
> How do I delete or remove values from a list

del

> or string

You can't. Python's strings are immutables.

> 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]
print a

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

Reply via email to