for this exercise https://www.codecademy.com/en/courses/python-beginner-nzzVa/3/2?curriculum_id=4f89dab3d788890003000096
how does the computer read the for loop. I'm not understanding how this function works? the length of x = 3 that makes the range [0,1,2] so how does x[i] start off with 3 * 2 = 6?
n = [3, 5, 7] def double_list(x): for i in range(0, len(x)): x[i] = x[i] * 2 return x print double_list(n)