lcm

math.lcm(*integers)

Returns the least common multiple

integers??

REMARKS
* maths module
* Return the least common multiple of the specified integer arguments. If all arguments are nonzero, then the returned value is the smallest positive integer that is a multiple of all arguments. If any of the arguments is zero, then the returned value is 0. lcm() without arguments returns 1.

import math 

© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited Top