An open API service indexing awesome lists of open source software.

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 🧮🐍

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

![image](https://github.com/SaadARazzaq/One-Line-Calculator/assets/123338307/d9891615-a96c-4e85-9d26-2a665cc051ac)

![image](https://github.com/SaadARazzaq/One-Line-Calculator/assets/123338307/36b59d2a-988d-43d6-b9e6-73da153685b9)