Monday, March 5, 2018

Number degrees() Method


Number degrees() Method in Python 3


The degrees() method converts angle x from radians to degrees..
Syntax
import math
degrees(x)

Note: This function is not accessible directly, so we need to import the math module and then we need to call this function using the math static object.

Parameters
x - This must be a numeric value.
Return Value
This method returns the degree value of an angle.
Example



and the output is: