DLS C2.W2.Error in Optimization Methods coding excercise

Hi, i am getting this error, any idea how to fix this?

Hi @adya_trisal , welcome to the community! This is your first post :slight_smile:

The error is simple. I’ll give you hint: see the range of the for-loop, which goes from 1 to L+1, and then see the index you are using in the dictionary. Are you within boundaries?

Check it out and let me know how t goes or if you’d need some more focused hints.

Also: Please don’t post your code in your posts - the Honor Code requests we don’t do this.

Please remove your code.



1 Like

hi @Juan_Olano , Thanks for the input, I totally overlooked that, it seems to be working just fine now.