Numerical Method Using Python To Calculate