Public feed #726191

Someone

public text v1 · immutable
Raw Edit
·published 2007-10-04 23:11 UTC
rendered paste body
def evens(list):
    '''This function will take a list into the "list" parameter and write 
    a new list that has all the members of even index in the original list'''

    new_list = []
    key = 0
    for u in list:
        if (key%2 == 0):
            new_list.append(u)
            key = key + 1
            print key
        else:
            pass
    return new_list