lcm math python library

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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