Course 2 Week 2 exercise 6



Does anyone know why I am getting this error, despite the code being correct?

Hey @Shivam_Bhandari,
Welcome to the community. In the moving average, you are supposed to use the sum operation, and not the subtract operation. In other words, it is the weighted sum of the previous value and the new added value. I hope this helps.

Cheers,
Elemento