i am working with lists, and there is a function that is returning something that looks like this:
array([0, 5, 3, 3, 0, 1, 2])
how do i cast those values into a list
?
what does array
mean?
i am working with lists, and there is a function that is returning something that looks like this:
array([0, 5, 3, 3, 0, 1, 2])
how do i cast those values into a list
?
what does array
mean?
array
most likely refers to a numpy.array
myarray = array([0, 5, 3, 3, 0, 1, 2])
mylist = list(myarray)