You can download this code by clicking the button below.
This code is now available for download.
Compute the absolute difference between two numbers a and b.
Technology Stack : Built-in function abs()
Code Type : Mathematical calculation
Code Difficulty :
def abs_difference(a, b):
return abs(a - b)