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.
The program uses the eval()
function to evaluate the mathematical expression provided by the user. It then prints the result.
- Run the program.
- You'll be prompted to enter a mathematical expression.
- Input your expression (e.g.,
2 + 3 * 4
). - The program will evaluate the expression and display the result.