helloworld helloworld helloworld prints out the phrase "helloworldfive times the condition on the while statement is evaluated at the start of each repetition if the condition is truethe body of the statement will execute it is easy to see the structure of python while statement due to the mandatory indentation pattern that the language enforces the while statement is very general purpose iterative structure that we will use in number of different algorithms in many casesa compound condition will control the iteration fragment such as while counter < and not donewould cause the body of the statement to be executed only in the case where both parts of the condition are satisfied the value of the variable counter would need to be less than or equal to and the value of the variable done would need to be false (not false is trueso that true and true results in true even though this type of construct is very useful in wide variety of situationsanother iterative structurethe for statementcan be used in conjunction with many of the python collections the for statement can be used to iterate over the members of collectionso long as the collection is sequence sofor examplefor item in [ , , , , ]print(item assigns the variable item to be each successive value in the list [ the body of the iteration is then executed this works for any collection that is sequence (liststuplesand stringsa common use of the for statement is to implement definite iteration over range of values the statement for item in range( )print(item * review of basic python