def find_lcm(num1, num2):
# Find the greater number between num1 and num2
if num1 > num2:
greater = num1
else:
greater = num2
# Loop through multiples of the greater number
while True:
if greater % num1 == 0 and greater % num2 == 0:
lcm = greater
break
greater += 1
return lcm
# Example usage
print("LCM of 4 and 6 is", find_lcm(4, 6))
LCM of 4 and 6 is 12
find_lcm()
` function takes two numbers as input parameters and returns their LCM. The function works by finding the greater number between the two, and then looping through multiples of that number until it finds a multiple that is also a multiple of the other number.