Derivatives error in week 3

I m getting error while computing derivatives. But I don’t think there is any error in my code. Here is my code

Can you help me find error

Hi SamanEjaz:
This is my code, hope it can help you!

Hi guys,

the rules state that no solutions can be shared publicly, even if they are wrong.

Instead, you need to test your solutions and analyze (maybe post in forum) the errors you are getting!

Thanks.

2 Likes

Hi @SamanEjaz ,

Please check you code against the pseudo code by clicking the Hints, making sure the logic is correct. Also, make sure the code block is in the right place. Python uses indentation to keep the flow of logic.

1 Like