A calculator with the basic functions and a customizable, implemented in Python.
Run this in your terminal:
https://github.com/cipherML/Simple-Calculator-python.git
Important: Python 3.6 or 3.7 is needed to run the toolbox.
- IDE
Pycharm
- Addition (+)
- Subtraction (-)
- Multiplication (*)
- Division (/)
- Power (^) ")
- Square-root (&)
- mod (%)
- floor div (//)
Addition
Calulator: 14+77
ans= : 91.0
Multiplication
Calulator: 11*5
ans= : 55.0
Power
Calulator: 10^3
ans= : 1000.0
Square-root
Calulator: 49&
ans= : 7.0
mod
Calulator: 51%5
ans= : 1,0
from myCalculator import TheCalculator
exe = TheCalculator()
try:
while True:
ans = exe.calc(input("Calculator:"))
print("ans= : ", ans)
except KeyboardInterrupt:
print("\n\n Thank You.! Have a Good Day")