Question
What makes printing useful for debugging?
Answer
In programming it can be difficult sometimes to determine where bugs are coming from. Any help we can get we should take, and print
is often a handy, simple debugging tool!
In this program, we have values being generated and we will later write code to check if our guess is correct or not. We could blindly guess until we get the numbers correct, or we could print them out and guess them to test that our check is working as expected.