Here's a simple calculator program in Python that can perform the basic mathematical operations such as addition, subtraction, multiplication and division:
main.py832 chars40 lines
To use this calculator, simply run the code and follow the instructions on the screen. The program will ask the user to select an operation (1 to 4), enter the first and second number, and then perform the chosen mathematical operation on the given numbers.
gistlibby LogSnag