Create a function named `odd_indices()`

that has one parameter named `lst`

.

The function should create a new empty list and add every element from `lst`

that has an odd index. The function should then return this new list.

For example, `odd_indices([4, 3, 7, 10, 11, -2])`

should return the list `[3, 10, -2]`

.

Solution Given–

def odd_indices(lst):

new_lst =

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

new_lst.append(lst[index])

return new_lst

Question From me:

Like I always say I like to ask the why, what thought process goes into getting the solution that was given because thats where I run into problems, because my logical thinking hasn’t caught up to my understanding of the knowledge of python. So what’s the thought process and how was this answer came too? thank you