/ Published in: Python
Expand |
Embed | Plain Text
>>> myl = [1,3,5,7] >>> newl = myl[:] >>> myl [1, 3, 5, 7] >>> newl [1, 3, 5, 7] >>> myl[1] = 5 >>> myl [1, 5, 5, 7] >>> newl [1, 3, 5, 7]
You need to login to post a comment.
