Skip to content

imamumhd/utility_box_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Python Utility Program

This is a simple Python project that provides three categories of operations:

  1. Text Utilities β†’ word count, reversing text, converting to uppercase
  2. Math Utilities β†’ add, subtract, multiply, divide
  3. 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 Structure


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)


πŸš€ How to Run

  1. Make sure you have Python 3.x installed.
  2. Clone or download this repository.
  3. Open a terminal in the project folder.
  4. 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

---




About

Simple_Python_Tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages