0

How to transform array into list in python

I want to know best method

29th Feb 2020, 12:21 PM
Maggie
Maggie - avatar
2 Respostas
+ 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?
29th Feb 2020, 12:29 PM
Brave Tea
Brave Tea - avatar
+ 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))
29th Feb 2020, 12:32 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar