Advertisement
Guest User

Untitled

a guest
Apr 14th, 2016
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. foobar = [['eshe ne sosnul']*2]*2
  2. print(foobar)
  3. [['eshe ne sosnul', 'eshe ne sosnul'], ['eshe ne sosnul', 'eshe ne sosnul']]
  4.  
  5. foobar[0][0]='a potom takoi vnezapno zaglotnul'
  6. print(foobar)
  7. [['a potom takoi vnezapno zaglotnul', 'eshe ne sosnul'], ['a potom takoi vnezapno zaglotnul', 'eshe ne sosnul']]
  8. #анон, ну чому?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement