Changes
From Biolecture.org
no edit summary
<p><img alt="" src="/ckfinder/userfiles/images/bandicam%202017-12-12%2021-33-53-945.jpg" style="height:252px; width:639px" /></p>
<p>f = open('rosalind_ba1mrosalind_ba1l.txt','r')<br />ind seq = int(f.readline())<br />k = int(f.readlinestrip())<br />
f.close</p>
<p>a = []0<br />for i in range(0,klen(seq)):<br /> d if seq[i] = 4**(k-i-1)<br /> count = 0<br /> if d > ind:<br /> a.append('A')<br /> else:<br /> while(d<=ind):0<br /> if seq[i] ==  #39; C #39; ind -= d:<br /> count +d = 1<br /> if countseq[i] ==1:<br /> a.append('CG'):<br /> if count=d =2:<br /> a.append(if seq[i] == 'GT'):<br /> if count=d =3:<br /> d = d*(4**(len(seq)-i-1))<br /> a.append('T')+= d<br />print("".join(a))</p>