no yes figure flowchart of while loop notice that the while version requires us to take care of initializing before the loop and incrementing at the bottom of the loop body in the for loopthe loop variable is handled automatically the simplicity of the while statement makes it both powerful and dangerous because it is less rigidit is more versatileit can do more than just iterate through sequences but it is also common source of errors suppose we forget to increment at the bottom of the loop body in the counting example while < print(iwhat will the output from this program bewhen python gets to the loopi will be which is less than so the loop body executesprinting now control returns to the conditioni is still so the loop body executes againprinting now control returns to the conditioni is still so the loop body executes againprinting you get the picture this is an example of an infinite loop usuallyinfinite loops are bad thing clearly this version of the program does nothing useful that reminds medid you hear about the computer scientist who died of exhaustion while washing his hairthe instructions on the bottle said"lather rinse repeat as beginning programmerit would be surprising if you did not accidentally write few programs with infinite loops--it' rite of passage for programmers even more experienced programmers have been known to do this from time to time usuallyyou can break out of loop by pressing - (holding down the key and pressing " "if your loop is really tightthis might not workand you'll have to resort to more drastic means (such as -