79445368

Date: 2025-02-17 12:21:33
Score: 0.5
Natty:
Report link
x = [3, 4, 5, 6]
total = 0
for i in x[0:]:
    total = total + i
print(total)

In the case where you need to skip the first elements but use the last element in range, use:

for i in x[1:]:

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: leni8ec