Welcome to the Treehouse Community
Looking to learn something new?
I think this test is broken
The code I have should work
nums = list(range(0,10)) def first_4(nums): return nums[:4] def first_and_last_4(nums): del nums[4:-4] return nums def odds(nums): return nums[1::2] def reverse_evens(nums): return nums[::-2]
Christian Mangeng15,969 Points
Have to correct myself regarding the order of steps. It works if you first get all the even indexes of the list, and THEN return that list in reversed order. So now it works even if the length of the list is even.
def reverse_evens(it): it_new = it[::2] return it_new[::-1]