repeat get number from the user until number is > the idea here is that the loop keeps getting inputs until the value is acceptable the flowchart depicting this design in shown in figure notice how this algorithm contains loop where the condition test comes after the loop body this is post-test loop post-test loop must always execute the body of the loop at least once get number number yes no figure flowchart of post-test loop unlike some other languagespython does not have statement that directly implements post-test loop howeverthis algorithm can be implemented with while by "seedingthe loop condition for the first iteration number - start with an illegal value to get into the loop while number number eval(input("enter positive number")this forces the loop body to execute at least once and is equivalent to the post-test algorithm you might notice that this is similar to the structure given earlier for the interactive loop pattern interactive loops are naturally suited to post-test implementation some programmers prefer to simulate post-test loop more directly by using python break statement executing break causes python to immediately exit the enclosing loop often break statement is used to leave what looks syntactically like an infinite loop here is the same algorithm implemented with breakwhile truenumber eval(input("enter positive number")if > break exit loop if number is valid