convert rad to degrees python code example
Example 1: cos in python in degrees
math.cos(math.radians(1))
# math.cos takes radians
# math.radians converts radians to degrees
Example 2: convert radians to degrees python
from math import degrees, pi
one_radian_in_degrees = degrees(pi)
# one_radian_in_degrees = 180