Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = [1, 2, 3]
- y = x
- print x # [1, 2, 3]
- y += [3, 2, 1]
- print x # [1, 2, 3, 3, 2, 1]
- x = [1, 2, 3]
- y = x
- print x # [1, 2, 3]
- y = y+ [3, 2, 1]
- print x # [1, 2, 3]
- y = y+ [3, 2, 1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement