summaryrefslogtreecommitdiff
path: root/complicated_wires.py
diff options
context:
space:
mode:
Diffstat (limited to 'complicated_wires.py')
-rwxr-xr-xcomplicated_wires.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/complicated_wires.py b/complicated_wires.py
new file mode 100755
index 0000000..5821726
--- /dev/null
+++ b/complicated_wires.py
@@ -0,0 +1,30 @@
+#!/usr/bin/env python3
+import sys
+
+arr = [
+ "cut",
+ "do not cut",
+ "cut",
+ "cut if two or more batteries",
+ "cut if last digit serial number even",
+ "cut if parallel port",
+ "do not cut",
+ "cut if parallel port",
+ "cut if last digit serial number even",
+ "cut if two or more batteries",
+ "cut",
+ "cut if two or more batteries",
+ "cut if last digit serial number even",
+ "cut if last digit serial number even",
+ "cut if parallel port",
+ "do not cut",
+]
+
+n = 0
+arg = sys.argv[1]
+if "r" in arg: n += 8
+if "b" in arg: n += 4
+if "s" in arg: n += 2
+if "l" in arg: n += 1
+
+print(arr[n])