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

Syntax:
math.degrees(x)
copy

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.

ExampleEdit & Run
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))
copy
Output:
179.9998479605043 57.29577951308232 29.999999999999996 71.6197243913529 90.00594003710101 [Finished in 0.010704169981181622s]