Integrate.py

Integrate x² from 0 to 5
import scipy.integrate as integrate result = integrate.quad(lambda x: x**2, 0, 5) print (result[0])