loops and lists how can we make program that writes such tablewe know from the previous how to generate one line in the tablep ( + / )** print( ,awe could then simply repeat these statements to write the complete programp = = ( + / )**nprint( ,an= ( + / )**nprint( ,an= ( + / )**nprint( ,an= ( + / )**nprint( ,athis is obviously not very good solutionsince it is very boring to write and errors are easily introduced in the code as general rulewhen programming becomes repetitive and boringthere is usually better way of solving the problem at hand in this casewe will utilize one of the main strengths of computerstheir strong ability to perform large numbers of simple and repetitive tasks for this purposewe use loops the most general loop in python is called while loop while loop will repeatedly execute set of statements as long as given condition is satisfied the syntax of the while loop looks like the followingwhile conditionthe condition here is python expression that is evaluated as either true or falsewhichin computer science termsis called boolean expression notice also the indentation of all the statements that belong inside the loop indentation is the way python groups code together in blocks in loop such as this oneall the lines we want to be repeated inside the loop must be indentedwith exactly the same indentation the loop ends when an unindented statement is encountered to make things bit more concretelet us use write while loop to produce the investment growth table above more preciselythe task we want to solve is the followinggiven range of years from zero to in steps of one yearcalculate the corresponding amount and print both values to the screen to write the correct while loop for solving given taskwe need to answer four key questions(iwhere/how does the loop startthat iswhat are the initial values of the variables(iiwhich statements should be repeated inside the loop(iiiwhen does the loop stopthat iswhat condition should become false to make the loop stopand (ivhow should variables be updated for each