Week 1.6: Errors

Week 1.6: Errors#

Attribution

This chapter reuses material from Python for Engineers. Find out more here.

At this point you are used to the fact that bugs in your code are a fact of life, but probably don’t have a methodical way of dealing with them. Perhaps sometimes you get errors and and have no idea how to fix them. This week we will consider various error types and promote a structured approach to debugging by learning about the traceback feature in Python.

This week we introduce several tools that while simple, form foundational elements of the broader field of software testing. If you ever use or write more complex (i.e., a collection of Python functions, modules or a package), these tools are essential.MUDE or elsewhere!