print('half way doneand heads has come up str(headstimes ' print( print('out of coin tossesheads came up str(headstimes!' print('were you close?'the program runs pretty fast it spent more time waiting for the user to press enter than doing the coin flips let' say you wanted to see it do coin flips one by one on the interactive shell' windowclick on debug debugger to bring up the debug control window then press to run the program the program starts in the debugger on line press step three times in the debug control window to execute the first three lines (that islines and you'll notice the buttons become disabled because input(was called and the interactive shell window is waiting for the user to type something click on the interactive shell window and press enter (be sure to click beneath the text in the interactive shell windowotherwise idle might not receive your keystrokes you can click step few more timesbut you'll find that it would take quite while to get through the entire program insteadset break point on lines and the file editor will highlight these lines as shown in figure - figure - three break points set after setting the breakpointsclick go in the debug control window the program will run at normal speed until it reaches the next break point when flip is set to the condition for the if statement on line is true this causes line (where there' break point setto executewhich tells the debugger to stop the program and take over look at the debug control window in the globals section to see what the value of flips and heads are click go again and the program will continue until it reaches the next break point on line againsee how the values in flips and heads have changed if you click go againthe execution will continue until the next break point is reachedwhich is on line