Question: Part II Debug a Python Program (15 Points) Note: Take two screen shots at two different points as you run the debugger to debug the

Part II Debug a Python Program (15 Points)

  • Note: Take two screen shots at two different points as you run the debugger to debug the given Python code.
  • Open the file Lab_12b.py and save it as YourlastnameFirstnameLab12b.cpp
  • Run the program and you will see that it is stuck in an infinite loop. Press CTRL-C in shell to kill the execution of your code. Use the debugger to find the bug, fix the code and run it to make sure it does what it is supposed to do.
  • Once you are satisfied with your results then run your program and take a screen shot of your output.

Paste all of your screen shot below this line

Take one screenshot of your debugging code

Take one screenshot after you fixed the code and produce the right result

Lab_12b.py is shown here:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!