A super simple and efficient Python script that automatically solves mathematical expressions from text files. Just drop a file with expressions into the tasks here folder, and watch the script solve them for you in real-time. ๐
- Fast and easy setup โ no extra libraries required! โก
- Supports multiple mathematical operations:
+,-,*,/,**(exponentiation), and more! ๐ข - Real-time file monitoring โ check your folder every second for new tasks. ๐
- Handles both integer and decimal numbers. ๐
- Drop your
.txtfile containing math expressions into thetasks herefolder. - Run the script, and it will automatically solve each expression inside the file. ๐
- Watch the results printed directly in your terminal/PowerShell. ๐
Create a file like example1.txt and add some math expressions:
2 * 3
5 + 1.5
10 / 2
7 ** 2
After running the script, the output will look like this: ๐ Processing file: example1.txt [1] 2 * 3 = 6 [2] 5 + 1.5 = 6.5 [3] 10 / 2 = 5.0 [4] 7 ** 2 = 49
- Clone or download the repository.
- Ensure you have Python 3.x installed.
- Run the script directly with
python script.py.
Perfect for learning, experimenting with Python, or just automating your math tasks in a fun way! ๐ฎ
This project is open-source and available under the MIT License.