tentukan bagaimana 2 string si sama 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()