Update imports

Update imports in rads_to_degrees
Update imports and formatting in gcd
Update imports in degrees_to_rads
Update import in snake
This commit is contained in:
Angelos Chalaris
2020-01-03 12:52:59 +02:00
parent 53e4e7f63d
commit ac060d94dd
4 changed files with 13 additions and 12 deletions

View File

@ -8,13 +8,13 @@ Converts an angle from radians to degrees.
Use `math.pi` and the radian to degree formula to convert the angle from radians to degrees.
```py
import math
from math import pi
def rads_to_degrees(rad):
return (rad * 180.0) / math.pi
```
```py
import math
from math import pi
rads_to_degrees(math.pi / 2) # 90.0
```