What's wrong in this code? | SoloLearn: Learn to code for FREE!


What's wrong in this code?

When we pass the value in sin function, what does it actually consider? Degree or radian https://code.sololearn.com/cosZK6Y79w4F/?ref=app

10/27/2019 7:43:39 AM


1 Answer

New Answer


math.sin(x) Return the sine of x radians. https://docs.python.org/3/library/math.html#math.sin Use math.sin(math.degrees(x)) instead.