Compare commits

..

No commits in common. "8e56b7e2c5b4c32eb263ccde9c8010ef0419b99a" and "44314e4e6d271d048234c19431ae3884b60dd3ca" have entirely different histories.

View File

@ -9,7 +9,7 @@ MISMATCH = -1
GAP = -2
def score_function(source_char: str, target_char: str) -> int:
def score_function(a: str, b: str) -> int:
"""
Calculate the score for a character pair based on whether they match or mismatch.
Returns 1 if the characters match, -1 if they mismatch.
@ -18,7 +18,7 @@ def score_function(source_char: str, target_char: str) -> int:
>>> score_function('A', 'C')
-1
"""
if source_char == target_char:
if a == b:
return MATCH
else:
return MISMATCH