Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
abs
abs
Return the absolute value of a number.
Python 3.13
abs
(
x
)
Examples
Python 3.13
>>
>
abs
(
-
5
)
5