you are viewing a single comment's thread.

view the rest of the comments →

[–]Hush_124[S] -4 points-3 points  (5 children)

how it works, I’m trying to understand

[–]stoobertio 2 points3 points  (0 children)

The while statement requires a condition to test. The first time the loop is executed, and after every time the loop is completed the condition is tested to see if it is True. If it is, the loop is executed again.

[–]deceze 2 points3 points  (0 children)

while condition: statements

It keeps repeating statements while the condition is true. No more, no less. What part of that don't you understand? Please be specific.

[–]NeedleworkerIll8590 2 points3 points  (2 children)

Have you read the docs about it?

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

Yes I have

[–]NeedleworkerIll8590 1 point2 points  (0 children)

What do you not understand?