Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why does .remove() seem to take every element out of a list?

I've found that if I define a list

Sage: list1 = [1,2,3]

and then try to remove an element

Sage: list2 = list1.remove(2)

but then

Sage: print(list2)

returns

None