The radians()
function in Python converts a value in degrees to the equal value in radians.
Figure 1 shows a mathematical representation of the radians()
function.
The
math
module is required for this function.
radians(value)
The radians()
function takes a
The radians()
function converts the value in degrees sent as a parameter to a value in radians.
import math#piprint "The value of radians(180) : ", math.radians(180), "Radians"#0print "The value of radians(0) : ", math.radians(0), "Radians"#-piprint "The value of radians(-180) : ", math.radians(-180), "Radians"