0

According to this, the math.lcm() function:

Return the least common multiple of the specified integer arguments. If all arguments are nonzero, then the returned value is the smallest positive integer which is a multiple of all arguments.

If I want to get the least common multiple of all numbers in the range of 40 to 200, how should I pass all those numbers as arguments to the lcm() function? It doesn't accept a list or range of numbers as an argument.

plpm
  • 539
  • 3
  • 12

0 Answers0