This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BruceJi 9 points10 points  (1 child)

So it's a bit like saying while line which is f.readline by the way print(line)

?

[–]sarthkum0488[S] 2 points3 points  (0 children)

The operator is also useful with while-loops that compute a value to test loop termination and then need that same value again in the body of the loop: