+ 2
What's wrong with my code? It seems to me that the nature variable isn't being changed by the find_root function.
2 Answers
+ 4
Junior Coder, the variable nature in the function is local variable, so first in the function find_nature use the global keyword. Look at the code.
https://code.sololearn.com/cuDld4zW6cRe/?ref=app
+ 4
TheWhÂĄteCat đ§đŹ Thanks for the help! đđ