+ 1
Any suggestions on how to make a Calculator in Python ???
a simple calculator with + - * / operations
2 Answers
+ 2
In Control structure of python tutorial, way to create simple calculator is given,just go through it.
+ 1
write functions do each math operation.. tie them into a simple menu with a loop
def add()
loop {
input num 1, maybe print to screen
input num 2, maybe print to screen
print the result
either loop back to add more or have a way to break the loop and it will return to the menu from the main program loop
}
def sub()
def mul()
def div()
def menu()
loop
{
call your menu function to select operation
loop back to menu.
}