summaryrefslogtreecommitdiff
path: root/progs/a165.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a165.py')
-rw-r--r--progs/a165.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/a165.py b/progs/a165.py
new file mode 100644
index 0000000..9de2d2f
--- /dev/null
+++ b/progs/a165.py
@@ -0,0 +1,7 @@
+def pair_wise(l1):
+ temp = []
+ for i in range(len(l1) - 1):
+ current_element, next_element = l1[i], l1[i + 1]
+ x = (current_element, next_element)
+ temp.append(x)
+ return temp \ No newline at end of file