Week2, Exercise 8: TypeError: 'tuple' object cannot be interpreted as an integer


index = 10
plt.imshow(test_set_x[:,index].reshape((num_px, num_px, 3)))
print ("y = " + str(test_set_y[0,index]) + ", you predicted that it is a \"" + classes[d["Y_prediction_test"][0,index]].decode("utf-8") +  "\" picture.")

Whenever I run this existing code I get the TypeError and I am not able to figure out what’s wrong with it. I haven’t even changed the code. Also, I​ have passed all tests up to this cell. Please someone help me to address the error.

What is the value and type of d["Y_prediction_test"][0,index]? Try to cast it as an int()`.