lcm math python library

Solutions on MaxInterview for lcm math python library by the best coders in the world

showing results for - "lcm math python library"
Erik
23 Nov 2019
1from math import gcd
2def lcm(a,b):
3  return a*b/(gcd(a,b))
4print(lcm(12,70))
5//output: 420