06.09.2021 Views

How to Think Like a Computer Scientist - Learning with Python, 2008a

How to Think Like a Computer Scientist - Learning with Python, 2008a

How to Think Like a Computer Scientist - Learning with Python, 2008a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

230 Debugging<br />

• If there is an error message, what is it and what part of the program does<br />

it indicate?<br />

• What was the last thing you did before this error occurred? What were the<br />

last lines of code that you wrote, or what is the new test case that fails?<br />

• What have you tried so far, and what have you learned?<br />

When you find the bug, take a second <strong>to</strong> think about what you could have done<br />

<strong>to</strong> find it faster. Next time you see something similar, you will be able <strong>to</strong> find the<br />

bug more quickly.<br />

Remember, the goal is not just <strong>to</strong> make the program work. The goal is <strong>to</strong> learn<br />

how <strong>to</strong> make the program work.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!