Sequence Models, Week 2

Cell #12. Can’t compile the student’s code. Error: ValueError('operands could not be broadcast together with shapes (50,) (2,) (50,) ',)
I am Getting this error while trying to submit

Apparently there is an error in your code that the unit tests did not catch.

and that is? I am Stuck can You help

You haven’t posted any information I can use to give you any better advice.

I believe you hardcoded avg. Try using any_word to initialise avg.
Hope this helps.