Signals and Noise   #


import collections code =["eedadn","drvtee","eandsr","raavrd","atevrs","tsrnev","sdttsa","rasrtv","nssdts","ntnada","svetve","tesnvt","vntsnd","vrdear","dvrsen","enarar"] code2 = [] finalWord = [] length = len(code) word = "" for x in range (0, len(code[0])): for y in range (0, length): word = word + "" + code[y][x] code2.append (word) word = "" for x in range (0, len(code2)): v = collections.Counter(code2[x]).most_common(1)[0] finalWord.append(v[0]) print (''.join(finalWord))

Loading Please Wait...