def monomial_gcd(A, B):
 return tuple([min(a, b) for (a, b) in zip(A, B)])

def monomial_gcd ( A , B ) : return tuple ( [ min ( a , b ) for ( a , b ) in zip ( A , B ) ] )
greatest common divisor of tuples representing monomials .