NumPy: Exercise

Let's practice NumPy. Mastering NumPy now will make our work much easier in the future, when we start doing machine learning in Python.

NumPy Exercise


Download the jupyter notebook from here and follow the instructions.


We have learned the basics of NumPy. It makes our work in Python much more efficient because it introduces a new data type np.array. Python can work more efficiently and faster with this type.


We cannot use np.array all the time. Sometimes it's more efficient to use list or dictionary. For example, if we want to iterate over the values in a variable.