How to convert radians to degrees python

convert radians to degrees can be done by using the function degrees(radians).

import math 

print(math.degrees(math.pi/2)) # 90.0

convert degrees to radians python can be done by using the function radians(degrees).

import math 

print(math.radians(90.0)) # 1.57079

you can also use to this formula:

degrees=radians×180°π