Trapezoidal Method Python Code Checker