summaryrefslogtreecommitdiff
path: root/progs/a224.py
blob: 5b3dbe3529404b1e9a492e2594071c78d0168b1a (plain)
1
2
3
def access_elements(nums, list_index):
    result = [nums[i] for i in list_index]
    return result