human
Give me a code to program to compare two fractions and the other steps required given the following:
Program to compare two fractions | Get max of the two fractions.
Declare nume1 and nume2 for get the value of first numerator and second numerator.
Compute ad - bc.
Driver Code"
Solution in Python:
assistant
#Here is code to program to compare two fractions and the other steps required.
 def maxFraction ( first , sec ) :
	a = first [ 0 ] ; b = first [ 1 ]
	c = sec [ 0 ] ; d = sec [ 1 ]
	Y = a * d - b * c
	return first if Y else sec
first = ( 3 , 2 )
sec = ( 3 , 4 )
res = maxFraction ( first , sec )
print ( str ( res [ 0 ] ) + " / " + str ( res [ 1 ] ) )