0
List vs Array
Between list and array which consumes memory the most in python?
5 Answers
+ 3
Definitely lists because they have way more overhead.
+ 2
Naturally lists require more memory, because they can store different types of values and list size can be changed after creation.
But depends which arrays and lists you are comparing.
array of numpy or array of array?
0
The array module.
0
Sizes in bytes:
As empty:
list: 20
tuple: 12
array: 32
With integers from 0 to 9:
list: 88
tuple: 52
array: 48