livepython.net

48. Fix a Python Program by Commenting Out Debug Prints

EasyComment out

Overview

Switch off debug lines with #.

Problem Statement

The program works, but it still shows debug lines. Comment them out so the output is only:

Total: 150

Input

No input is required for this question.

Output

Total: 150

Learn this firstChapter 6 · Commenting Out Code to Test and Debug
solution.py
price = 50
print("debug: price is", price)
qty = 3
total = price * qty
print("debug: total is", total)
print("Total:", total)

EXPECTED OUTPUT

1Total: 150

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.