← Back to challenges

Radians to Degrees

PythonHardmathlogicnumbers

Instructions

Create a function that takes an angle in radians and returns the corresponding angle in degrees rounded to one decimal place.

Examples

radians_to_degrees(1) ➞ 57.3

radians_to_degrees(20) ➞ 1145.9

radians_to_degrees(50) ➞ 2864.8

Notes

The number π can be loaded from the math module with from math import pi.

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Circle or Square