79116403

Date: 2024-10-23 05:22:47
Score: 5
Natty:
Report link

How did you manage to screw up such a simple task? List / array indices start at 0, so if you reach array[len(array)] returns an error, while array[len(array)-1] does not. ALSO, if you really wanted to iterate through each element of a list, use the code:

a = [1, 2, 3, 4, 5]
for i in a:
    print(i)
Reasons:
  • RegEx Blacklisted phrase (3): did you manage to
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How did you
  • Low reputation (1):
Posted by: I like ducks