The Word Count Tool is a simple Python script that calculates the number of words in a given text input.
This Python script provides a basic functionality to count the number of words in a text input:
- count_words(text): Function that splits the input text into words and returns the count of words.
- word_count_tool(): Function that takes user input and utilizes 'count_words' to print the word count.
- Clone the Repository:
git clone https://github.com/yourusername/word-count-tool.git
cd word-count-tool
- No Additional Modules Required: This script only uses Python's standard library, so no additional modules need to be installed.
After cloning the repository and navigating to the project directory:
python word_count_tool.py
Follow the on-screen prompts to enter text and see the word count result.
$ python word_count_tool.py
Enter some text: Hello world, this is a sample text.
Word count: 7