I have the general idea of how to do this in Java, but I am learning Python and not sure how to do it.
I need to implement a function that returns a list containing
def skip_elements(elements): # code goes here new_list=[] for index,alpha in enumerate(elements): if index%2==0: new_list.append(alpha) return new_list print(skip_elements(["a", "b", "c", "d", "e", "f", "g"])) print(skip_elements(['Orange', 'Pineapple', 'Strawberry', 'Kiwi', 'Peach']))