Absolute Difference Calculator

  • Share this:

Code introduction


This function returns the absolute difference between two numbers.


Technology Stack : Built-in function abs()

Code Type : Function

Code Difficulty :


                
                    
def aordiff(arg1, arg2):
    # This function returns the absolute difference between two numbers
    return abs(arg1 - arg2)