Why does python have a specific module for arrays?
I know that arrays can only hold one datatype and Python has a module for array's but why does python have a specific module for array's because if we want we can create a list with the same datatype.
So what it the actual advantage of having a array module in python?
This is a array:
from array import *
a = array("i", [5, 8])
print(a)
I can do the same exact thing with a list:
a = [5, 8]
print(a)
What the advantage with the python module array?