It is mind blowing how no one has created a calculator where you just type in an expression and get the result. All of the calculators I've seen have you type in one number then press enter then type in +, -, / or * then press enter then type your second number. This calculator takes simple expressions and returns the result.

*No spaces in expressions
**Can do addition, subtraction, multiplication, and division. Planning to add more operations in the future.
***Has float/int switcher in division. If is not a whole number it is a float, if it is a whole number it is an int.

@ryanmuraliraj: another version that can do it in 1 line:
print(eval(input("calculation here:")))
non-crashing version:
try:
print(eval(input("calculation:")))
except:
print("INVALID")

## An Actual Calculator

It is mind blowing how no one has created a calculator where you just type in an expression and get the result. All of the calculators I've seen have you type in one number then press enter then type in +, -, / or * then press enter then type your second number. This calculator takes simple expressions and returns the result.

Examples:

Input:1+1 | Output:2

Input:1000-15 | Output:985

Input:10*10 | Output:100

Input:100/10 | Output:10

Input:2/3 | Output:0.666666

Input:0/0 | Output: Error

*No spaces in expressions

**Can do addition, subtraction, multiplication, and division. Planning to add more operations in the future.

***Has float/int switcher in division. If is not a whole number it is a float, if it is a whole number it is an int.

My Calculator:

https://repl.it/@RyanMuraliraj/Calculator

Some of the calculators I was talking about:

https://repl.it/ibuiltthis/p/my-calculator-1

https://repl.it/ibuiltthis/p/calculator

https://repl.it/@HongjiDai/Simple-Calculator

This calculator does it but uses external modules without actually coding it themself:

https://repl.it/ibuiltthis/p/mega-calculator

Shoutout to the creators of the calculators listed above for the idea and inspiration.

pls upvote

print(eval(input("calculation here:")))

non-crashing version:

try:

print(eval(input("calculation:")))

except:

print("INVALID")