Course 5, Week 2, Assignment 2, Exercise 3

I am getting below error. How I fix it?


The assertion is triggered because the array of indexes is not elementwise equal to the array of values provided. So to debug your code, print out the indices to see where it might have gone wrong.

A good place to put this print statement is in the code section where the index is found, below this implementation note:

Set the (i,j)th entry of X_indices to the index of the correct word.

The problem is solved. Thank you!