I came across a question by a new user today. I assume that due to unfamiliarity with the intricacies of the SE editor, they tried to mark a code block using `...` - which didn't quite produce the desired result [1].
At this point, I didn't plan to answer, but just to improve the readability of the post by editing it - when I noticed that the raw post contained some non-printable characters, which for me, were a clear indication of the problem with the OP's code:
Unfortunately, after adding indentation and converting the OP's code into a proper code block, these symbols were gone, and with them an important hint to the issue exhibited by the output.
My question: was there some other way to convert the OP's text into code, while preserving the non-printable characters?
P.S. in case this is somehow related to my system configurations, I was using FF 60.0 on Win10.
<pre><code>
.0
). In that case, single digits would be printed as their ASCII value, which is a bunch of non-printable characters (appearing in the screenshot as squares). I saw this happen plenty of times, so the immediate suspect was the missing conversion. In my post I meant to say that the OP's problem would be more difficult to pinpoint had it not been for these non-printable characters.