rapid introduction to procedural programming while boolean_expressionsuite actuallythe while loop' full syntax is more sophisticated than thissince both break and continue are supportedand also an optional else clause that we will discuss in the break statement switches control to the statement following the innermost loop in which the break statement appears--that isit breaks out of the loop the continue statement switches control to the start of the loop both break and continue are normally used inside if statements to conditionally change loop' behavior while trueitem get_next_item(if not itembreak process_item(itemthis while loop has very typical structure and runs as long as there are items to process (both get_next_item(and process_item(are assumed to be custom functions defined elsewhere in this examplethe while statement' suite contains an if statementwhich itself has suite--as it must--in this case consisting of single break statement the for in statement python' for loop reuses the in keyword (which in other contexts is the membership operator)and has the following syntaxfor variable in iterablesuite just like the while loopthe for loop supports both break and continueand also has an optional else clause the variable is set to refer to each object in the iterable in turn an iterable is any data type that can be iterated overand includes strings (where the iteration is character by character)liststuplesand python' other collection data types for country in ["denmark""finland""norway""sweden"]print(countryhere we take very simplistic approach to printing list of countries in practice it is much more common to use variablecountries ["denmark""finland""norway""sweden"for country in countriesprint(country