0
How to transform array into list in python?
I want to know best method
2 Respuestas
+ 3
what do you mean by array?
Python does use arrays, but generally not exactly the way other languages do.
can you show some code where this would be applicable?
+ 3
Probably use list() function?
import array
arr = array.array('i',[5,10,15,20,25])
print(type(arr))
li = list(arr)
print(type(li))