Определите, как 2 строки Si равный py
from difflib import SequenceMatcher
def similar(a, b):
return SequenceMatcher(None, a, b).ratio()
Difficult Dormouse
from difflib import SequenceMatcher
def similar(a, b):
return SequenceMatcher(None, a, b).ratio()