1. NumPy pip install scipy python from scipy import integrate def f(x): return x**2 result = integrate.quad(f, 0, 1) print(result)