Student please help

Looks like you just need accuracy = 0.001 and instead you have a minus sign (in two places)

If that doesn’t fix your error, you should make a reprex to get better help.

Please have a look at this guide, to see how to create one: