Got all the expected outputs, but did not get any marks in Exercise 5 which shows the following
Please help, why did I get this error and how can I make this right?
You need to use np.sum instead of sum.
np.sum
sum