Back to All Challenges
Back to all challenges
The Shipping Scale Slip-up
Solve the "The Shipping Scale Slip-up" intermediate challenge. Focus: python logic.
intermediatepython
Terminal
user@debugger:~/project$ node app.js
Logic error: No runtime error, but heavy packages are undercharged. Any weight over 5kg immediately returns 10, so the branches for >10kg (should be 20) and >20kg (should be 50) are unreachable.
user@debugger:~/project$ ▌
Test Cases (Click to expand)