← All tasks
🔍
Beginner

Off-by-One Sum

⏱ 4 min ⭐ 100 XP 🔁 3 attempts allowed

What you'll do

Study the Python code and click the line number(s) that contain the bug.

Scenario

This function should return the sum of ALL numbers in the list (the call should print 6) but it prints 5.

Ready to try it?

Create a free account and subscribe to take "Off-by-One Sum". Earn 100 XP and track your internship progress.

Already have an account? Sign in