what's difference between numpy arrays and normal arrays from array module in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what's difference between numpy arrays and normal arrays from array module in python?

16th May 2020, 8:42 PM
Mohsin Ansari
Mohsin Ansari - avatar
1 Answer
+ 1
The arrays in the array module are highly obsolete, I'd say. First of all, they are less flexible than lists - you can only store one-type variables there. Second of all, you can't really do matrix operations on them efficiently, the array module has no such implementation ready. For numerical computations you are *far* better off using numpy arrays.
17th May 2020, 8:10 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar