I’m getting what appears to the a correct output after clicking run: [3, 10, -2]

However, I get an error from Code Academy: `odd_indices([4, 3, 7, 10, 11, -2])`

should have returned `[3, 10, -2]`

, and it returned [3, 10, -2, 3, 10, -2]

Anyone explain what I’m missing? I understand the stated solution, but I’d like to also know what I did wrong on my own.

My code is the following:

new_list =

def odd_indices(lst):

for i in range(1, len(lst), 2):

new_list.append(lst[i])

return new_list