I just started using python, and am having difficulty with a very basic program. I want to calculate the cosine of -20 degrees. It is my understanding that the default value is
You need to input in radians, so do
math.cos(math.radians(-20))
math.radians(-20) converts -20 degrees to radians.