Minsu Kim/python/Rosalind / problem1
f = open('rosalind_ba1b.txt','r') a = [] for line in f_fa: i = line.split() a.append(i[0]) text = a[0] f.close() freq = 11 b = dict() max_freq = 0 for j in range(0,len(text)-freq+1): k = text[j:j+freq] if not k in b: b[k] = 0 b[k] += 1 if max_freq < b[k]: max_freq = b[k] for k in b.keys(): if b[k] == max_freq: print(k)