Solution Review: Using Numpy and Scipy
This lesson provides the solutions to the previous challenges.
Numpy #
According to the problem statement, we needed these four values using one numpy 1-D array as an output: max, std, sum, and dot product. In the code above, at line 1 we imported the numpy module for this purpose. Next, we implemented the function perform_calculations().
Look at its header at line 3. It takes one argument, array as an input. At ...