Say I have a list [0.67045, 0.662866]
and I want to expand it to be, say size 8 and repeats until the size is reached;
[0.67045, 0.662866,0.67045, 0.662866, 0.67045, 0.662866,0.67045, 0.662866]
and if I give it a list of size 4; [0.850009, 0.439764, 0.849811, 0.440243]
it will become
[0.850009, 0.439764, 0.849811, 0.440243, 0.850009, 0.439764, 0.849811, 0.440243]
and a list of size 8 simply wouldn't be expanded as it is equal to the size I want it to be.
How is this done in python?