Question: I need help. Please, read the introduction before debugging this code in Python. You can re-arrange it if possible. Let's get to debugging! As you

I need help. Please, read the introduction before debugging this code in Python. You can re-arrange it if possible.

I need help. Please, read the introduction before debugging this code in

Python. You can re-arrange it if possible. Let's get to debugging! As

Let's get to debugging! As you all know, finding the bug in our code is probably the toughest thing to do in coding. Here are three programs that have bugs. Attempt to compile them and identify where the bugs are and fix them to get the code working properly. Once you compile the code you will see the listing of errors given by the compiler in your console. Remember to always start with the first error. Fix that error, then recompile to determine if there are still anymore bugs. Sometimes there aren't any syntax errors, yet there are logical errors in the code that don't allow the program to perform as expected. You are expected to fix all of these errors as well. Think about how you would expect the program to run and what the expected output should be. Once you fix all of the bugs in the programs, I want you to share your experience in the debugging process. This is an open-ended discussion where there aren't necessarily specific questions. However, you must list the stages you went through to debug each program and then post the fixed code that works as expected. I recommend you keep a log of the process you used as you debug your code so that it's easy to write up your post. Do your best to format the code in the post so that it's readable (this might take more work than you'd think). Once you make your post, you can review what your classmates did! Happy coding

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 Databases Questions!