Home >>Python math Module >Python math.degrees() Method
Python math.degrees() Method in python is used to returns the angle value from radians in degree and , it accepts a number.
Syntax:math.degrees(x)
Parameter | Description |
---|---|
x | It is required a radian value to convert into degrees and it returns a TypeError |
import math
print (math.degrees(-4.13))
print (math.degrees(-4))
print (math.degrees(65))
print (math.degrees(1))
import math
a = 0
print("math.degrees(",a,"): ", math.degrees(a))
a = 0.34
print("math.degrees(",a,"): ", math.degrees(a))
a = 2.65
print("math.degrees(",a,"): ", math.degrees(a))
a = -0.12
print("math.degrees(",a,"): ", math.degrees(a))