Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> a = [{}]* 20
- >>> a
- [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}]
- >>> a[0][1] = 2
- >>> a
- [{1: 2}, {1: 2}, {1: 2}, {1: 2}, {1: 2}, {1: 2}, {1: 2}, {1: 2}, {1: 2}, {1: 2}, {1: 2}, {1: 2}, {1: 2}, {1: 2}, {1: 2}, {1: 2}, {1: 2}, {1: 2}, {1: 2}, {1: 2}]
- >>>
Add Comment
Please, Sign In to add comment