Coding Debug
Fix a Layout Problem on Your Web Page
Something on my web page is not where it should be. What I see: [LAYOUT_PROBLEM]. What I want instead: [DESIRED_LAYOUT]. Here is the HTML and CSS for that part of the pag…
Coding · Debug
When code runs but the answer is wrong, trace the mistake step by step and learn how to spot it.
My code runs without errors, but the result is wrong. Here is the code: [CODE]. With this input: [TEST_INPUT], I expected [EXPECTED_OUTPUT], but I got [ACTUAL_OUTPUT]. Please walk through the code line by line using my example input, showing what each value becomes at each step, like following a recipe. Point to the exact line where things start going wrong and explain why in simple words. Then give me the fix. After that, suggest two or three other small test inputs I can try myself to be confident it now works, including an unusual case such as an empty list or a zero.
Tip: Use a small, simple example input so the step-by-step walk-through is easy to follow.