What is a 'Print' statement for debugging?

Asked by blessing007 · 6 months ago

1 Answer

21
amorebise · 6 months ago Top Answer

It's the simplest way to see what's happening. You tell the computer to 'print' a message or a variable's value at different points in your code.

It's like having a reporter inside your code telling you what's going on. 'I've reached the loop!' 'The score is now 20!' It helps you see the invisible flow of the program.

Log in to add a comment.