Week 2 Programming Assignment (Deep Learning)

(First programming assignment in course)
I’m getting this error, seems to be that the test made is wanting to get a costs list of length 1 while there is 2000 iterations passed into the optimize function causing 20 appends to the costs list, therefore I’m getting length 20. Is there a mistake in the values I’m defining?

Solved by not using any hard coding in the call to the optimize function, just used the names of the variables. Hope this solves the problem for someone else as well. Best of luck to everyone out there. Enjoy!

Glad you were able to figure this out, Jacob, and thank you for sharing your solution as well!