到目前为止,这是我所拥有的:提示用户输入两个序列似乎有错误。
def matchSequences(sequence1, sequence2):
numMatches = 0
(input("Enter the RNA sequences")==(sequence1, sequence2)
for i in range(0,len(sequence1))
if sequence1[i] == A and i in sequence2[i] == U
numMatches = numMatches+1
if sequence1[i] == C and i in sequence2[i] == G
numMatches = numMatches+1
if sequence1[i] == G and i in sequence2[i] == C
numMatches = numMatches+1
if sequence1[i] == U and i in sequence2[i] == A
numMatches = numMatches+1
elif numMatches == numMatches+0:
for i in range (sequence1, sequence2)
if i in sequence1[i]:
numMatches == numMatches+1
elif numMatches == numMatches+0:
return numMatches
matchSequences()