To convert radians to degrees in Python, you can use the degrees() function from the math module. The degrees() function takes a single argument, which is the angle in radians, and returns the angle converted to degrees.
Here is an example code:
import math
angle_radians = math.pi/4 # 45 degrees in radians
angle_degrees = math.degrees(angle_radians)
print(angle_degrees) # Output: 45.0
In the above example, we first define the angle in radians as math.pi/4, which is equivalent to 45 degrees. Then, we use the degrees() function to convert the angle to degrees and store the result in the variable angle_degrees. Finally, we print the value of angle_degrees, which should be 45.0.