Python Repeat Item Into List

July 31, 2019
[1] * 3     # [1, 1, 1]
['a'] * 4   # ['a', 'a', 'a', 'a']
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.