Question: Use a debugger to find the logic error in the function below. We want to print up to and including the number passed to the
Use a debugger to find the logic error in the function below. We want to print up to and including the number passed to the function.
def print_to_number(number): """Prints to the number value passed in, beginning at 1""" for counter in range(1,number): print (counter) if __name__ == "__main__": print_to_number(5)
1.Take a screenshot of a breakpoint where the error is.
2.Take a screenshot of the code running with the error.
3.Fix the error.
4.Take a screenshot of the code running without the error.
5.Remove the break point.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
