This notebook contains an excerpt from the Python Programming and Numerical Methods - A Guide for Engineers and Scientists, the content is also available at Berkeley Python Numerical Methods.

The copyright of the book belongs to Elsevier. We also have this interactive book online for a better learning experience. The code is released under the MIT license. If you find this content useful, please consider supporting the work on Elsevier or Amazon!

< 10.5 Debugging | Contents | 11.0 Reading and Writing Data >


  1. Errors are inevitable when coding. Errors are important because they tell you that something is not working the way you intended.

  2. There are three types of errors: syntax errors, exceptions, and logical errors.

  3. You can reduce the numbers of errors in your coding with good coding practice.

  4. Try-except statements can be used to handle exceptions without stopping your code. However, try-except statements should never be used in place of good practice to manage errors.

  5. The Debugger is a Python tool for helping you find errors.


None, have fun with what we learned in this chapter.

< 10.5 Debugging | Contents | 11.0 Reading and Writing Data >