Help with "Exploring Australia's coral reefs" Assignment - 'operands could not be broadcast together' Error

Hello, I have an error on exercise 2 when I submit my assignment. The code works correctly and returns the right value. Could you please help me?

1 Like

Dear @Jean2000,

Please send me the code via direct message.
You can do this by clicking on my name and then click Message.
Kindly note that sharing code in the community is against the code of conduct, so please do not post it here.


Keep Learning AI with DeepLearning.AI - Girijesh

The error tells you that your code does not pass one of the tests that the grader uses.

Passing the tests in the notebook does not prove your code is perfect. The grader uses different tests.

I agree with what has been said, but I believe the mentioned error does not directly refer to my code. It could be the result of an accidental modification of a part of the code that should not have been altered.

To verify this, I would need the original version of the notebook, which I unfortunately no longer have due to my successive saves.

Please, could you share this version with me privately to avoid breaking the forum rules?

Hi Jean. You can follow the instructions here under the Coursera Jupyter Lab Environment section to refresh your workspace and get a new blank copy of the notebook.

Hello everyone,

The problem was due to an error in my code. I found and corrected the mistake, which allowed me to get the certification. I would like to thank all of you for your help.

2 Likes