Hi Alasdair, I understand that you mean sage: lst=[[1,2],[3,4],[5,6]] sage: for x in lst: ....: lstc=copy(lst) ....: lstc.remove(x) ....: print lstc ....: [[3, 4], [5, 6]] [[1, 2], [5, 6]] [[1, 2], [3, 4]]
Probably you got onle "None" printed. This is because the return value of lstc.remove(x) is None. The remove() method changes the list in place. Best regards, Simon --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
