title: Python: How to make each term of an array repeat, with the same terms grouped together
body: <p>My array is <code>[A,B,C]</code> and I want to multiply it so I can make the array <code>[A,A,A,B,B,B,C,C,C]</code></p>