+ 4
How to create calculator in python 2.7?
3 Answers
+ 4
not exact calculator...
+ 1
This would be something to research, instead of asking another to write for you! đ
It is most likely a better idea to reseach this, since it could be a more advanced method of explanation of your question!
Hope this helps!
+ 1
Oh, well; first you would establish a set of inputs to see what the user is trying to exactly do with the calculator.
pseudocode:
if add? Do adding code.
Elif subtract? Do subtraction code.
Elif multiply? Do multiply code.
Elif divide? Do divide code.
Etc.
Once you find what the user wants to do, decide on how many numbers you want the user to be able to input.
So, let's say a maximum of 2; so:
if add?
Yes.
What is your first number? 2
What is your second number? 2
Do the adding codes. 2 + 2, and return the result.
Apply this to all calculations. This is just a simple calculator example. đ