find absolut vale in python

abs(a)

Here is what the above code is Doing:
1. We’re creating a function called absolute_value.
2. It takes one argument, a.
3. It checks if a is less than zero.
4. If it is, it returns -a.
5. Otherwise, it returns a.
6. We call the function with a value of -5.
7. Python runs the function, and the function returns 5.