The math.radians()
function converts an angle measurement in degrees to the equivalent measurement in radians.
math.radians(x)
Where, x
is the angle in degrees as an integer or floating point value.
import math
print(math.radians(30))
print(math.radians(45))
print(math.radians(53))
print(math.radians(60.5))
print(math.radians(90))
print(math.radians(120.12))