diff options
Diffstat (limited to 'challenge-046/orestis-zekai/python/ch-1.py')
| -rw-r--r-- | challenge-046/orestis-zekai/python/ch-1.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/challenge-046/orestis-zekai/python/ch-1.py b/challenge-046/orestis-zekai/python/ch-1.py new file mode 100644 index 0000000000..27c7ed5e99 --- /dev/null +++ b/challenge-046/orestis-zekai/python/ch-1.py @@ -0,0 +1,14 @@ +import collections
+
+message = [['H', 'x', 'l', '4', '!'], ['c','e','-','l','o'], ['z','e','6','l','g'], ['H','W','l','v','R'], ['q','9','m','#','o']]
+
+final_word = ''
+for j in range(0, len(message)):
+ my_list = []
+ for i in message:
+ my_list.append(i[j])
+
+ counter = collections.Counter(my_list)
+ final_word += str(counter.most_common()[0][0])
+
+print(final_word)
\ No newline at end of file |
