just for funtry executing the code max int(raw_input('enter postive integer') while maxi print see how large an integer you need to enter before there is perceptible pause before the result is printed finger exercisewrite program that asks the user to enter an integer and prints two integersroot and pwrsuch that pwr and root**pwr is equal to the integer entered by the user if no such pair of integers existsit should print message to that effect for loops the while loops we have used so far are highly stylized each iterates over sequence of integers python provides language mechanismthe for loopthat can be used to simplify programs containing this kind of iteration the general form of for statement is (recall that the words in italics are descriptions of what can appearnot actual code)for variable in sequencecode block the variable following for is bound to the first value in the sequenceand the code block is executed the variable is then assigned the second value in the sequenceand the code block is executed again the process continues until the sequence is exhausted or break statement is executed within the code block the sequence of values bound to variable is most commonly generated using the built-in function rangewhich returns sequence containing an arithmetic progression the range function takes three integer argumentsstartstopand step it produces the progression startstart stepstart *stepetc if step is positivethe last element is the largest integer start *step less than stop if step is negativethe last element is the smallest integer start *step greater than stop for examplerange( produces the sequence [ ]and range( - produces the sequence [ if the first argument is omitted it defaults to and if the last argument (the step sizeis omitted it defaults to for examplerange( and range( both produce the sequence [ less commonlywe specify the sequence to be iterated over in for loop by using literale [ in python range generates the entire sequence when it is invoked thereforefor examplethe expression range( uses quite lot of memory this can be avoided by using the