Feedback returned when submitting assignment C4W1_Assignment

In the train_val_split part of the graded assignment returned 0/10 and:

There was a problem grading your submission. Details:
operands could not be broadcast together with shapes (5,) (2,)

I don’t see any issues with my code and it passes all tests. Anyone run into this before?

Please click my name and message your notebook as an attachment.

Please don’t use global variables when possible. Hint: Look at the time_step parameter.

Figured it out. It grades correctly now, thanks.

Hi,

I am a new member here. I have encountered the same issues, I have tried changing the scope of the global variable in the time_step parameter. But still having the same issues with the grader. Not sure what am I missing. Would it be OK to send a copy of my notebook?

Thank you!

Please click my name and message your notebook as an attachment.

Hello,
thank you for your reply. I was able to work it out based on your earlier input.