I have been going through the loop challenges and I need some clarification on how the range function is used in the answer. I don’t understand why we have 1 and 2 at the beginning and end. And what this bit of code actually means.
#Write your function here
for index in range(1, len(lst), 2):
#Uncomment the line below when your function is done
print(odd_indices([4, 3, 7, 10, 11, -2]))