Sorry to bother but this is getting extremely annoying


#1




My code does everyTHING it was asked to do.


when I hit submit, the console prints out the correct result. I COMPLETED the exercise. But then a message box comes up and says "Oops, try again. double_list([0, 1]) resulted in an error: list index out of range". First of all that was incredibly unhelpful since I have no idea what the message is saying since the course never taught "range" yet. And secondly, I literally completed the exercise with what was supposed to happen.


n = [3, 5, 7]

def double_list(x):
    for i in range(0, len(n)):
        x[i] = x[i] * 2
    return x
print double_list(n)
# Don't forget to return your new list!


#2

3 posts were merged into an existing topic: I'm really frustrated right now


#3