You can download this code by clicking the button below.
This code is now available for download.
Calculate the absolute difference between two numbers.
Technology Stack : math
Code Type : Mathematical calculation
Code Difficulty :
def abs_diff(x, y):
return abs(x - y)