Python Function Reference

math.radians
Convert angle x from degrees to radians.
Python 3.13
math.radians(x)
x
The angle in degrees.
Examples
Python 3.13
>>> import math
>>> math.radians(180)
3.141592653589793