Make it fuzzy!

Report a typo

Arrange the lines of code to find all occurrences of the word can in the story.txt file, using fuzzy search.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                from fuzzysearch import find_near_matches_in_file
              
                find_near_matches_in_file('can', file, max_l_dist=1)
              
                with open('story.txt', 'r', encoding='utf-8') as file:
              
___

Create a free account to access the full topic