summaryrefslogtreecommitdiff
path: root/progs/a117.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a117.py')
-rw-r--r--progs/a117.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/a117.py b/progs/a117.py
new file mode 100644
index 0000000..d6429ad
--- /dev/null
+++ b/progs/a117.py
@@ -0,0 +1,5 @@
+def alternate_elements(list1):
+ result=[]
+ for item in list1[::2]:
+ result.append(item)
+ return result \ No newline at end of file