demo_numpy_ufunc_lcm3.py:
import numpy as np arr = np.arange(1, 11) x = np.lcm.reduce(arr) print(x)
C:\Users\My Name>python demo_numpy_ufunc_lcm3.py
2520