1 00:00:07,940 --> 00:00:11,625 Most weeks, our last lesson's going to be titled, 2 00:00:11,625 --> 00:00:13,245 The Way of the Programmer. 3 00:00:13,245 --> 00:00:16,560 These segments are not about how Python works, 4 00:00:16,560 --> 00:00:18,450 but about how you should work. 5 00:00:18,450 --> 00:00:20,400 Style tips for your codes, 6 00:00:20,400 --> 00:00:22,775 strategies for solving programming problems, 7 00:00:22,775 --> 00:00:25,860 habits, mindsets that will make it so that you can have 8 00:00:25,860 --> 00:00:29,370 fun even though it's hard work and sometimes frustrating. 9 00:00:29,370 --> 00:00:31,680 This week, we'll focus on debugging. 10 00:00:31,680 --> 00:00:34,920 Your programs are not going to always work the first time, 11 00:00:34,920 --> 00:00:37,860 in fact, they rarely will. You have to debug them. 12 00:00:37,860 --> 00:00:42,080 And debugging your code is a little bit like being a detective in 13 00:00:42,080 --> 00:00:47,245 a crime movie where you are also the criminal because you wrote the code. 14 00:00:47,245 --> 00:00:50,480 So are our learning objectives for this lesson, 15 00:00:50,480 --> 00:00:53,720 the end of it you should be able to distinguish between three types of errors; 16 00:00:53,720 --> 00:00:57,335 Syntax errors, Runtime errors and Semantic errors. 17 00:00:57,335 --> 00:01:00,830 You should develop a habit that when you get an error, 18 00:01:00,830 --> 00:01:04,010 you'll look at the error messages and start, 19 00:01:04,010 --> 00:01:09,120 you'll start to build a skill of interpreting those error messages. 20 00:01:09,250 --> 00:01:14,450 You will internalize a mantra of get something working and keep it working. 21 00:01:14,450 --> 00:01:17,980 Don't write big swaths of code before you test it. 22 00:01:17,980 --> 00:01:23,430 And you'll be able to recognize some common errors and how to fix them.