Math Functions
math.lcm()
Find the nonnegative least common multiple of integers. Any zero argument gives zero; no arguments give one.
Formal Syntax & Structure
python syntaxpython
math.lcm(*integers)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| integers | int | Zero or more integer operands. |
Return Value
int
Integer result, exact for integer arithmetic.
Working Example
Example Snippetpython
import mathprint(math.lcm(6, 8, 10))