Start of main content## Recommended snippets

Converts an angle from degrees to radians.

- Use
`math.pi`

and the degrees to radians formula to convert the angle from degrees to radians.

```
from math import pi
def degrees_to_rads(deg):
return (deg * pi) / 180.0
```

`degrees_to_rads(180) # ~3.1416`

### Radians to degrees

Python, Math

Converts an angle from radians to degrees.

### Digitize number

Python, Math

Converts a number to a list of digits.

### Integer to roman numeral

Python, Math

Converts an integer to its roman numeral representation. Accepts value between

`1`

and`3999`

(both inclusive).