Minsu Kim/python/Rosalind / problem3

From Biolecture.org

 

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)