[docs] Python.remove() function working on all list instead of one.

Shayer Ansari ansari.walatima at outlook.com
Wed Apr 17 02:15:12 EDT 2019


a =[1,2,3,4,5]
b=a
c=a
a.remove(3)
print(a)
print(b)
print(c)
Output-
>[1,2,4,5]
>[1,2,4,5]
>[1,2,4,5]

Sent from Windows Mail

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20190417/017ab8ff/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bug.png
Type: image/png
Size: 5347 bytes
Desc: Bug.png
URL: <http://mail.python.org/pipermail/docs/attachments/20190417/017ab8ff/attachment-0001.png>


More information about the docs mailing list