aboutsummaryrefslogtreecommitdiff
path: root/challenge-078/walt-mankowski/python/ch-2.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-078/walt-mankowski/python/ch-2.py')
-rw-r--r--challenge-078/walt-mankowski/python/ch-2.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/challenge-078/walt-mankowski/python/ch-2.py b/challenge-078/walt-mankowski/python/ch-2.py
new file mode 100644
index 0000000000..0d72428167
--- /dev/null
+++ b/challenge-078/walt-mankowski/python/ch-2.py
@@ -0,0 +1,10 @@
+from sys import argv
+
+def rotate_by(b, a):
+ return a[b:] + a[0:b]
+
+a = [int(x) for x in argv[1].split(' ')]
+b = [int(x) for x in argv[2].split(' ')]
+
+for x in b:
+ print(rotate_by(x, a))