We can build a calculator with the help of Python. It is not complex or hard to execute code.
Please follow the screenshots and try to play with the code as I have done with the help of Google's colab.
The first step is to write the commands so that the user can input values.
op stands for operator
All four operators are used in the code.
An else statement is also written in case a user inputs an invalid one.
I hope the screenshots were clear enough and easy to understand.
All images are screenshots of practice done on colab