# Number Methods

## Absolute Value

Absolute value means the distance of it from 0 in a number line.

![Absolute](https://images.nagwa.com/figures/explainers/497148719187/1.svg)

In Python, you can calculate the absolute value of a number using the `abs()` function.

```python
print(abs(-1))
print(abs(1))
```

<iframe
  loading="lazy"
  title="Python IDLE Trinket"
  src="https://trinket.io/embed/python3/97b0b913b7"
  height="400"
/>
