Study the Python code and click the line number(s) that contain the bug.
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