Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

lcm math python library

from math import gcd
def lcm(a,b):
  return a*b/(gcd(a,b))
print(lcm(12,70))
//output: 420
 
PREVIOUS NEXT
Tagged: #lcm #math #python #library
ADD COMMENT
Topic
Name
2+5 =