Google News
logo
Python - Interview Questions
Why would you use NumPy arrays instead of lists in Python?
NumPy arrays provide users with three main advantages as shown below :
 
* NumPy arrays consume a lot less memory, thereby making the code more efficient.
* NumPy arrays execute faster and do not add heavy processing to the runtime.
* NumPy has a highly readable syntax, making it easy and convenient for programmers.
Advertisement