as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
write a python function that takes two integers and returns their least common multiple.
user
def lcm(a, b):
  if a > b:
    greater = a
  else:
    greater = b
  while(true):
    if((greater % a == 0) and (greater % b == 0)):
      lcm = greater
      break
    greater += 1
  return lcm

print(lcm(15, 18))
# output: 90
assistant