Sequence models week-2 assignment-2

please help me to resolve above error

Try this thread:

hello, i tried but still i am getting same error, could you please give me more idea to fix the error.

Send me your code for that function via a direct message.

The “if count>0” code block should not be intended.
If it is indented, then it will be inside the for-loop, and that will compute an incorrect value for avg. That triggers the “4 words” assert.

Yeah I corrected my code. It passed successfully

Thank you so much