#Part of my β90 Days of Pythonβ journey β learning by building one project at a time! π§‘
Welcome to Day 24 of my 90 Days of Python Series! π This project is a simple yet powerful Word Counter Tool that helps you analyze text by counting:
Itβs built entirely with basic Python β no external libraries β making it perfect for beginners who want to practice loops, conditionals, and string handling.
β Counts total words in a sentence or paragraph β Calculates characters (excluding spaces) β Detects the number of sentences β Keeps running until you choose to exit β Beginner-friendly and easy to modify
2. **Navigate into the folder:**
```bash
cd python-word-counter-tool
- Run the Python script:
python word_counter.py
π§ Example Output
β¦
#Part of my β90 Days of Pythonβ journey β learning by building one project at a time! π§‘
Welcome to Day 24 of my 90 Days of Python Series! π This project is a simple yet powerful Word Counter Tool that helps you analyze text by counting:
Itβs built entirely with basic Python β no external libraries β making it perfect for beginners who want to practice loops, conditionals, and string handling.
β Counts total words in a sentence or paragraph β Calculates characters (excluding spaces) β Detects the number of sentences β Keeps running until you choose to exit β Beginner-friendly and easy to modify
2. **Navigate into the folder:**
```bash
cd python-word-counter-tool
- Run the Python script:
python word_counter.py
π§ Example Output
β¨ Welcome to the Word Counter Tool β¨
Enter your text or paragraph:
Python is amazing! It makes programming fun and creative.
π Your Text Summary π
Words: 8
Characters (without spaces): 48
Sentences: 2
Do you want to analyze another text? (yes/no): no
Thanks for using the Word Counter Tool! π§‘
π Project Structure
python-word-counter-tool/
β
βββ word_counter.py # Main Python script
βββ README.md # Project documentation
βββ LICENSE # License file
π§© Concepts Used
- Loops (
while
,for
) - Conditional statements (
if
,else
) - String methods (
split()
,strip()
,replace()
) - Counting logic for text analysis
π License
MIT License
Copyright (c) 2025 Momina Raheel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
π Why This Project?
This project is self-independent, meaning:
- It uses no external libraries.
- It runs directly on any system with Python installed.
- Itβs easy to understand, modify, and extend.
Perfect for beginners who want to learn text processing while strengthening core Python skills. π»
π‘ Part of my β90 Days of Pythonβ journey β learning by building one project at a time! π§‘