← All tasks
🔍
Programming Beginner

Off-by-One Sum

⏱ 5 min ⭐ 100 XP 🔁 3 attempts allowed

What you'll do

Find the bug in the snippet and identify the fix.

Scenario

A teammate's python code is misbehaving. Expected behavior: Should return the sum of 1..n inclusive.

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