Create a function named
odd_indices() that has one parameter named
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.
odd_indices([4, 3, 7, 10, 11, -2]) should return the list
[3, 10, -2] .
for index in range(1, len(lst), 2):
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