then value of 'nis incremented by ' = 'nis still less than therefore loop will be executed again in this iteration value of 'nwill become which is still less than in the same mannerloop will continue to increase the value of 'nuntil ' = when ' = 'then loop condition at line ' will not be satisfied and loop will not be executed this time at this point python-interpreter will reach to line ' 'where it will print the value stored in variable 'ni as shown in line ' alsolook at 'printcommands at lines ' and ' at line ' '"end 'is placed at the endwhich results in no line change while printing outputs as shown at line ' at line ' ''\nis used to change the lineotherwise this print output will be continued with output of line ' for loop repetitive structure can also be implemented using 'forloop for loop requires the keyword in and some sequence for execution lets discuss the range command to generate sequencesthen we will look at 'forloop some outputs of 'rangecommands are shown in listing listing range command range( [ range( , [ range( [ range( - [ explanation listing from the outputs of 'rangecommands in the listingit is clear that it generates sequences of integers python indexing starts from zerotherefore command 'range( )at line ' generates five numbers ranging from ' to ' at line ' 'two arguments are given in 'rangecommands ' and ' note that output for this at line ' starts from ' and ends at ' last number is not included by python in the output list at line ' and ' 'three arguments are provided to 'rangefunction in these casesthird argument is the increment value line ' indicates that the number should start from ' and stop at number ' with decrement of ' at each step note that last value ' is not included in the output again similarlyoutput of line ' does not include ' listing prints numbers from ' to ' in forward and reverse direction using range command listing for loop #forexample pyprint numbers - print("numbers in forward order"for in range( )print( + end="print("\nfinal value of is" print ("\nnumbers in reverse order"for in range( - )print(jend=")print("\nfinal value of is" ''outputs(continues on next page control structure