def mult_comun(x, y, z):
mult_co = []
mult = mult_com(x, y, z)
for i in range(1, 4):
mult *= i
mult_co.append(mult)
return mult_co
print(mult_comun(a, b, c))
This is the code I wrote, but I'm not sure it's working right (I don't think that the math in this case works like this. I mean, multiplying the least common multiple by 2, 3 and 4)
(this is the mult_com() function I defined earlier, used for finding the least common multiple)
def mult_com(x, y, z):
mult = (x * y* z) // (div_com(x, y, z) ** 2)
return mult
print("Cel mai mic multiplu comun este ", mult_com(a, b, c))