human
Find Maximum and Minimum of two numbers using Absolute function | Function to return maximum among the two numbers.
Function to return minimum among the two numbers.
Driver code.
Displaying the maximum value.
Displaying the minimum value"
How can the above be solved in Python?
assistant
#Here is code to find Maximum and Minimum of two numbers using Absolute function and the other steps required.
 def maximum ( x , y ) :
	return ( ( x + y + abs ( x - y ) ) // 2 )
def minimum ( x , y ) :
	return ( ( x + y - abs ( x - y ) ) // 2 )
x = 99
y = 18
print ( " Maximum : " , maximum ( x , y ) )
print ( " Minimum : " , minimum ( x , y ) )