human
Minimum positive integer value possible of X for given A and B in X = P * A + Q * B | Function to return gcd of a and b ;"
How can the above be solved in Python?
assistant
#Here is code to minimum positive integer value possible of X for given A and B in X = P * A + Q * B and the other steps required.
 def gcd ( a , b ) :
	if a == 0 :
		return b
	return gcd ( b % a , a )
/ * Driver code * /
a = 2
b = 4
print ( gcd ( a , b ) )