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
math.degrees takes a number of radians and produces a number of degrees. You need the opposite conversion - you have a number of degrees, and you need to produce a number of radians you can pass to math.cos. You need math.radians: