From c65028dd5d5d7e188898b550a0e4b147be126abb Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Thu, 30 Aug 2018 20:18:53 +0200 Subject: Initial --- complicated_wires.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 complicated_wires.py (limited to 'complicated_wires.py') 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]) -- cgit v1.2.3-54-g00ecf