Most weeks, our last lesson's going to be titled,
The Way of the Programmer.
These segments are not about how Python works,
but about how you should work.
Style tips for your codes,
strategies for solving programming problems,
habits, mindsets that will make it so that you can have
fun even though it's hard work and sometimes frustrating.
This week, we'll focus on debugging.
Your programs are not going to always work the first time,
in fact, they rarely will. You have to debug them.
And debugging your code is a little bit like being a detective in
a crime movie where you are also the criminal because you wrote the code.
So are our learning objectives for this lesson,
the end of it you should be able to distinguish between three types of errors;
Syntax errors, Runtime errors and Semantic errors.
You should develop a habit that when you get an error,
you'll look at the error messages and start,
you'll start to build a skill of interpreting those error messages.
You will internalize a mantra of get something working and keep it working.
Don't write big swaths of code before you test it.
And you'll be able to recognize some common errors and how to fix them.