aboutsummaryrefslogtreecommitdiff
path: root/challenge-046/orestis-zekai/python/ch-1.py
blob: 27c7ed5e99bf5a0ae3d4589140385143210deca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)