Skip to content

aaronthebaron/triple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Code Challenge: Input: a text string containing English words, whitespace (spaces and new lines) and punctuation like commas, periods, question marks and semi-colons.

Output:

Print a list of triplets. Each triplet is a pair of words and a count

For example the output for the sample input:

Are you: 2

Installation:

Get yourself a virtualenv
pip install -r requirements.txt
python triple.py "Your string"

Dependencies:

Python 3