Home >>Python math Module >Python math.radians() Method
Python math.radians() method in python is used to returns the angle (degree) value in radians and it accepts a number.
Syntax:math.radians(x)
Parameter | Description |
---|---|
x | It is required a number to convert a degree value into radians. |
import math
print(math.radians(79))
print(math.radians(34.334))
print(math.radians(-75))
import math
a = 10
print("math.radians(",a,"): ", math.radians(a))
a = 0
print("math.radians(",a,"): ", math.radians(a))
a = 14.15
print("math.radians(",a,"): ", math.radians(a))
a = -3.15
print("math.radians(",a,"): ", math.radians(a))