+ 1

Any suggestions on how to make a Calculator in Python ???

a simple calculator with + - * / operations

22nd Feb 2017, 11:07 AM
Akshay
Akshay - avatar
2 odpowiedzi
+ 2
In Control structure of python tutorial, way to create simple calculator is given,just go through it.
22nd Feb 2017, 12:29 PM
Prajwal Gowda
Prajwal Gowda - avatar
+ 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. }
22nd Feb 2017, 12:59 PM
LordHill
LordHill - avatar