Update degrees_to_rads.md

This commit is contained in:
Angelos Chalaris
2019-10-15 15:16:48 +03:00
committed by GitHub
parent d5c6d2d425
commit c7f3a0f982

View File

@ -11,10 +11,9 @@ Use `math.pi` and the degrees to radians formula to convert the angle from degre
import math
def degrees_to_rads(deg):
return (deg * math.pi)/180.0
return (deg * math.pi) / 180.0
```
```py
import math
degrees_to_rads(180) # 3.141592653589793
```