The math.degrees() function converts an angle from radians to degrees.

math.degrees(x)

Where parameter x is a numerical ( float or integer) value representing  a radian angle.

The function  returns the angle in degrees equivalent of the input radian angle (x). The returned value is always in floating point format.

import math
print(math.degrees(3.14159))
print(math.degrees(1))
print(math.degrees(0.5235987755982988))
print(math.degrees(1.25))
print(math.degrees(1.5709))