Regarding numpy quiz

acc to me the answer of 5th and 6th questions are wrong
pls see the question and tell me if the 6rh question answer is B and 5th ans is D or not

Hey @bhavyahoda, no that’s not correct. The answer of both the questions are correct. You can try running both the things practically. If you have a numpy array as :

a = np.arange(0,9).reshape(3,3)

Then when you print

a.tolist()

you will get an output like [[0, 1, 2], [3, 4, 5], [6, 7, 8]] which is a list only. So the correct answer of Q5 is (B).

Similarily if you print

np.size(a)

you will get an output as 9 which are the total number of elements in the array. So the correct answer of Q6 is (C ).

I hope this resolves your doubt ! :+1:
Happy Learning ! :slightly_smiling_face:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

1 Like