On Freitag 10 Dezember 2010, Dirk Nachbar wrote:
> I want to take a copy of a list a
> 
> b=a
> 
> and then do things with b which don't affect a.
> 
> How can I do this?
> 
> Dirk

b=a[:]


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

Reply via email to