Skip to content

Short example of algorithm for counting number of words between 2 provided words in text

Notifications You must be signed in to change notification settings

Triol19/words-distance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

words-distance

Short example of algorithm for counting number of words between 2 provided words in text

Requirements

Python 3.6+

Usage

Basic

python distance.py

Params

-f - name of the file (file_to_process.txt by default)

-ci - case insensitive mode (False by default)

-w1 - First word

-w2 - Second word

Running the tests

python -m unittest

About

Short example of algorithm for counting number of words between 2 provided words in text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages