Update degrees_to_rads.md
This commit is contained in:
@ -11,10 +11,9 @@ Use `math.pi` and the degrees to radians formula to convert the angle from degre
|
|||||||
import math
|
import math
|
||||||
|
|
||||||
def degrees_to_rads(deg):
|
def degrees_to_rads(deg):
|
||||||
return (deg * math.pi)/180.0
|
return (deg * math.pi) / 180.0
|
||||||
```
|
```
|
||||||
|
|
||||||
```py
|
```py
|
||||||
import math
|
|
||||||
degrees_to_rads(180) # 3.141592653589793
|
degrees_to_rads(180) # 3.141592653589793
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user