# Write a functin that returns the LCM of two input numbers

## Topic: Write a functin that returns the LCM of two input numbers

Solution

def lcm(a, b): if a>b: min_ = a else: min_ = b while True: if min_%a==0 and min_%b==0: break min_+=1 return min_

List all Python Programs