summaryrefslogtreecommitdiff
path: root/progs/a117.py
blob: d6429ad2fc01d2e8bac5abb9d887c2b3fd8f60d9 (plain)
1
2
3
4
5
def alternate_elements(list1):
    result=[]
    for item in list1[::2]:
        result.append(item)
    return result