It says: Oops, try again. double_list([0, 1]) returned [0, 1] instead of [0, 2]
I tried a different approach than the default code in the editor. I don't understand this code isn't working? Can someone please explain what am I doing wrong?
n = [3, 5, 7] def double_list(x): for i in x: i *= 2 return x print double_list(n)