Minsu Kim/python/Rosalind / problem3
Revision as of 20:07, 12 December 2017 by imported>Minsukim (Created page with "<p><img alt="" src="/ckfinder/userfiles/images/bandicam%202017-12-12%2020-04-20-828.jpg" style="height:351px; width:1000px" /></p> <p> </p> <p>f = open('rosalind_ba1d....")
f = open('rosalind_ba1d.txt', 'r')
a = []
for line in f:
i = line.split()
a.append(i[0])
f.close
seq = a[1]
pattern = a[0]
l = len(pattern)
for k in range(0,len(seq)):
if(seq[k:k+l]==pattern):
print(k)