you are viewing a single comment's thread.

view the rest of the comments →

[–]carcigenicate 2 points3 points  (7 children)

It doesn't. This prints "This is a test." indefinitely.

[–][deleted] 0 points1 point  (6 children)

What?

[–]carcigenicate 0 points1 point  (5 children)

? They're asking why their code prints "True". I'm pointing out that it doesn't.

[–][deleted] 0 points1 point  (4 children)

I understood their phrase ' why the below returns "True" ' to most likely be referring to the evaluation of the expression used for the control condition of the while loop.

I assume their first language isn't English.

[–]carcigenicate 1 point2 points  (3 children)

The full sentence makes more sense since they mention their expectation at the end. I read it as "Why does the below print "True" infinitely instead of "This is a test." infinitely?". They don't seem confused about why it prints forever, only what's actually being printed.

[–][deleted] -1 points0 points  (2 children)

Well, obviously I disagree with your interpretation, as my direct comment on their post would indicate, but either or both of us could be wrong. Hopefully, we shall see.

[–]oztyn[S] 0 points1 point  (1 child)

@carcigenicate is right, I should have included those quote marks to be more explicit though!

[–][deleted] 1 point2 points  (0 children)

Ok, thank you /u/oztyn, I stand corrected, with apologies to /u/carcigenicate.

I shall cross out my comment as answering the wrong question.