Wrong answer in the quizz question

Course Name: Python for Trading: Basic, Section No: 7, Unit No: 17, Unit type: Quiz

To compare all the elements of any two arrays (say array ‘A’ and array ‘B’), we use _______.
  • a) np.array_equal
  • b) A = = B
  • c) A = B
  • d) np.array_logical
The system correct answer is (b) but I think the correct should be (a) np.array_equal. Please confirm my understanding.
 

Hi Lucas



There was an ambiguity in the question. We meant to ask the operator to use for the element-wise comparison. The same has been updated in the course. Thank you for pointing this out.



Regards,

Rishabh