Derick Ho3,113 Points
Why does the prompter tell me that my solution is incorrect however is reviewed my answer and it returns the correct val
I am having a problem with reverse evens specifically. I am supposed to return a list that is the reversal of the original and only the even indexes of that list. However after i completed the task it tells me it is incorrect.
def first_4(whatever): return whatever[0:4] def first_and_last_4(single): final = single[0:4] final.extend(single[-4:]) return final def odds(provided): return provided[1::2] def reverse_evens(single): reverse = single[::-1] final =  for item in reverse: if(reverse.index(item) % 2 == 0): final.append(item) return final
to get a even index on the list u need to advance with 2 steps [0::2] and to reverse it add [-1]