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

def monomial_lcm ( A , B ) : return tuple ( [ max ( a , b ) for ( a , b ) in zip ( A , B ) ] )
least common multiple of tuples representing monomials .