Module 11
Debugging is an important part of being a programmer, unfortunately, it is the most infuriating part as well. In this module, we were asked to debug this code. So the first thing I did was just run the function by itself and I got this error: The second thing I did was try to find what kind of data could be inserted into it. I decided to make a list but it did not work I created a matrix. After doing so I tried to insert the matrix into the function which did not work so to figure out what the function was doing I spaced it out a bit and without deleting anything miraculously it worked. This confuses me. Before: After: As you can see I just spaced-out line 9. Then I decided to run the matrix again and got this error: There is not a turkey.outlier I think the problem is that we need to remove that. Removing it appears that the code works but just because it appears so doesn't mean it's actually working and I'm not quite sure how this function is working but ...