I would like to troubleshoot an incorrect user input. It's exactly about finding the closest match from the "database".
database = ["dog", "cat", "bird"]
user_input = ["dog", "ccat", "ddogg", "horse", "fish"]
for i in user_input:
match = difflib.get_close_matches('i', words)
match
But I get an empty list. Is there any simple solution to this problem? I haven't found anywhere how to get the result to the list using difflib.