Answers for "how to copy items in list n times in list python"

0

how to copy items in list n times in list python

In [16]:

x1=[1,2,3,4]
In [17]:

np.repeat(x1,3)
Out[17]:
array([1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4])
Posted by: Guest on August-17-2021

Code answers related to "how to copy items in list n times in list python"

Python Answers by Framework

Browse Popular Code Answers by Language