Minsu Kim/python/Rosalind /problem6

From Biolecture.org
Revision as of 20:54, 12 December 2017 by imported>Minsukim
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

f = open('rosalind_ba1g.txt', 'r') # 열고
lines = f.readlines()
seq_1 = lines[0]
seq_2 = lines[1]
f.close

count = 0
for i in range(len(seq_1)):
    if(seq_1[i]!=seq_2[i]):
        count += 1
        
print(count)