Please check my homework
These questions post a routine exercise, give (often in great detail) an answer (that often is correct) and ask
Is my answer correct?
Why is this problematic?
We are not a homework-checking site.
The question effectively has been asked and answered. What is any answer supposed to add?
In most cases, the question is a duplicate ...
I think it depends on how egregious the poor formatting is. In this particular case, I would probably leave a comment to the OP asking them to first paste the output into a text editor and then copy-paste that into a code block instead of the image, for the reasons you describe. If a reasonable amount of time passes without an update, I personally would ...