Question: 
Write a python function to find lcm of two positive integers.


Model's Code:
def lcm(a, b):
    def gcd(x, y):
        while y:
            x, y = y, x % y
        return x
    return abs(a * b) // gcd(a, b)



Sample Correct Code:
def lcm(x, y):
   if x > y:
       z = x
   else:
       z = y
   while(True):
       if((z % x == 0) and (z % y == 0)):
           lcm = z
           break
       z += 1
   return lcm


Asserts:
assert lcm(4,6) == 12
assert lcm(15,17) == 255
assert lcm(2,6) == 6


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 876 of 974: 674/876 (76.9406392694064%): success