In this document, you will see a python code of a basic calculator for 4 mathematical operations.
Once you run the code, you need to enter your first and then the second number.
Followingly, you need to choose the math operation that you want to execute.
You should choose one of the first letter of the basic math operations in uppercase which have matched as below:
A --> Addition
S --> Substraction
M --> Multiplication
D --> Division.
To execute the program, you need to have Python 3.x and an editor. If you do not have Python installed yet, it is highly recommended that you install the Anaconda distribution of Python, which already has the above packages and more included. Make sure that you select the Python 3.X installer and not the Python 2.7 installer.