SHARE
TWEET

Untitled

a guest Nov 14th, 2017 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. In [20]: a = [[1]]
  2.  
  3. In [21]: for i in a:
  4.     ...:     i = [2]
  5.     ...:     print(a)
  6.     ...:
  7. [[1]]
  8.  
  9. In [22]: for i in a:
  10.     ...:     i[0] = 2
  11.     ...:     print(a)
  12.     ...:
  13. [[2]]
RAW Paste Data
Top