summaryrefslogtreecommitdiff
path: root/progs/a224.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a224.py')
-rw-r--r--progs/a224.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/a224.py b/progs/a224.py
new file mode 100644
index 0000000..5b3dbe3
--- /dev/null
+++ b/progs/a224.py
@@ -0,0 +1,3 @@
+def access_elements(nums, list_index):
+ result = [nums[i] for i in list_index]
+ return result \ No newline at end of file