diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2018-08-30 20:18:53 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2018-08-30 20:18:53 +0200 |
commit | c65028dd5d5d7e188898b550a0e4b147be126abb (patch) | |
tree | 674e2d1e3b7cdb279fa8463ced58ce8be98d7867 /complicated_wires.py |
Initial
Diffstat (limited to 'complicated_wires.py')
-rwxr-xr-x | complicated_wires.py | 30 |
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]) |