summaryrefslogtreecommitdiff
path: root/set1/challenge4.py
diff options
context:
space:
mode:
Diffstat (limited to 'set1/challenge4.py')
-rw-r--r--set1/challenge4.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/set1/challenge4.py b/set1/challenge4.py
new file mode 100644
index 0000000..996cf35
--- /dev/null
+++ b/set1/challenge4.py
@@ -0,0 +1,8 @@
+from challenge3 import get_max_single_char_xor
+
+res = []
+with open('challenge4.txt', 'r') as f:
+ for line in f.readlines():
+ res.append(get_max_single_char_xor(line))
+
+print max(res, key=lambda x: x[0])