This is a simple Python project that provides three categories of operations:
- Text Utilities β word count, reversing text, converting to uppercase
- Math Utilities β add, subtract, multiply, divide
- File Utilities β save text to a file, read text from a file
The program is menu-driven and runs through the main entry point: main.py.
project/
β
βββ main.py # Entry point - asks user what they want to do
βββ text\_utils.py # Text utility functions (count, reverse, uppercase)
βββ math\_utils.py # Math utility functions (add, subtract, multiply, divide)
βββ file\_utils.py # File utility functions (save text, read text)
- Make sure you have Python 3.x installed.
- Clone or download this repository.
- Open a terminal in the project folder.
- Run the program:
python main.py
---
## π Features
### Text Utilities
* **Count Words** β returns number of words in a sentence
* **Reverse Words** β reverses the order of words in text
* **Make Uppercase** β converts text to uppercase
### Math Utilities
* **Add** β adds two numbers
* **Subtract** β subtracts second number from first
* **Multiply** β multiplies two numbers
* **Divide** β divides first number by second (handles division by zero)
### File Utilities
* **Save to File** β writes text to a file
* **Read File** β reads and displays contents of a file
---
## π Example Run
```
what do you want to do? (text, math, file): text
which operation? (count, reverse, uppercase): count
Enter text: Hello World
2
```
---
## β
Requirements
* Python 3.x
* No external libraries required
---