Monday, March 5, 2018

Number radians() Method


 Number radians() Method in Python 3


The radians() method converts angle x from degrees to radians.
Syntax
import math
radians(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 radian value of an angle.
Example

and the output is :