Function to Return Smaller of Two Arguments

  • Share this:

Code introduction


Returns the smaller of the two given arguments.


Technology Stack : Comparison operators

Code Type : Comparison function

Code Difficulty : Intermediate


                
                    
def aaaa(arg1, arg2, arg3):
    if arg1 < arg2:
        return arg1
    else:
        return arg2