https://github.com/saadarazzaq/one-line-calculator
Python Script to Calculate Mathematical Expressions 🧮🐍
https://github.com/saadarazzaq/one-line-calculator
calculator eval one-line-code python
Last synced: 2 months ago
JSON representation
Python Script to Calculate Mathematical Expressions 🧮🐍
- Host: GitHub
- URL: https://github.com/saadarazzaq/one-line-calculator
- Owner: SaadARazzaq
- Created: 2023-08-23T21:21:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-23T21:27:33.000Z (over 1 year ago)
- Last Synced: 2025-01-23T16:14:30.481Z (4 months ago)
- Topics: calculator, eval, one-line-code, python
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# One-Line-Calculator 🔥
This is a one-line calculator program written in Python. It takes a mathematical expression as input, evaluates it, and then displays the result with a fun emoji reaction. The program is designed to be concise and interactive.
## 🧠How It Works
The program uses the `eval()` function to evaluate the mathematical expression provided by the user. It then prints the result.
## ⚒️Usage
1. Run the program.
2. You'll be prompted to enter a mathematical expression.
3. Input your expression (e.g., `2 + 3 * 4`).
4. The program will evaluate the expression and display the result.## 🔳Outputs

