Could you explain "[1, 2, 3].remove(2)" to me?

fl rxjwg98 at gmail.com
Thu Jun 25 14:14:13 EDT 2015


Hi,

I see a code snippet online:

[1, 2, 3].remove(42)

after I modify it to:

[1, 2, 3].remove(2)

and

aa=[1, 2, 3].remove(2)


I don't know where the result goes. Could you help me on the question?

Thanks,



More information about the Python-list mailing list