replication

How to replicate array to specific length array

How to replicate array to specific length array Question: I want replicate a small array to specific length array Example: var = [22,33,44,55] # ==> len(var) = 4 n = 13 The new array that I want would be: var_new = [22,33,44,55,22,33,44,55,22,33,44,55,22] This is my code: import numpy as np var = [22,33,44,55] di = …

Total answers: 4