Absolute Value Function

  • Share this:

Code introduction


Returns the absolute value of a number, ignoring its sign


Technology Stack : abs()

Code Type : Mathematical calculation

Code Difficulty :


                
                    
def abs_value(x):
    return abs(x)                
              
Tags: