2022-09-13 ROSLIND_6: Counting
作者:
小孟在充电 | 来源:发表于
2022-09-13 21:15 被阅读0次# ----ROSLIND_6: ----
# Counting Point Mutations
with open("Counting Point Mutations.txt") as f:
paired_string = f.readlines()
paired_string = [x.strip() for x in paired_string]
c = []
def cPoint_Mut(seq):
for i in range(len(paired_string[0]) or len(paired_string[0])):
if str(paired_string[0][i]) == str(paired_string[1][i]):
c.append(paired_string[0][i])
else:
pass
# continue
answer = (len(paired_string[0]) - len(c))
return answer
cPoint_Mut(seq = paired_string)
本文标题:2022-09-13 ROSLIND_6: Counting
本文链接:https://www.haomeiwen.com/subject/aqxhortx.html
网友评论