This is the best way that I know of :
from math import gcd
a = [100, 200, 150] #will work for an int array of any length
lcm = 1
for i in a:
lcm = lcm*i//gcd(lcm, i)
print(lcm)
Hope this helps. All queries, contributions and comments are welcome 🙂