Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 492 Bytes

File metadata and controls

16 lines (12 loc) · 492 Bytes

word_count_histogram

A simple, visual, terminal-based word count histogram in idiomatic Python

Takes a string of words as input and returns a word frequency histogram and total.

Example

[watson@watson-thinkpad word_count_histogram (master)]$ python word_count_histogram.py
Enter text:ardvark bird bird cow cow cow dog dog dog dog
ardvark 1 *
bird    2 **
cow     3 ***
dog     4 ****
TOTAL   10 words

David Watson