0 out of 464 challenges solved
Write a Python function `degrees_to_radians(degrees)` that takes an angle in degrees as input and returns its equivalent in radians. Use the formula: \[ \text{radians} = \text{degrees} \times \frac{\pi}{180} \] #### Example Usage ```python [main.nopy] print(degrees_to_radians(90)) # Output: 1.5707963267948966 print(degrees_to_radians(60)) # Output: 1.0471975511965976 print(degrees_to_radians(120)) # Output: 2.0943951023931953 ```
import math def degrees_to_radians(degrees): """ Convert an angle from degrees to radians. Args: degrees (float): The angle in degrees. Returns: float: The angle in radians. """ # Implement the conversion formula here pass