Calculator v2.0 - python
Target : Add History Option and make more Accurate In this case I was trying to add a option which can remember past operations and return them when we want with full details ;such as our inputs, operation we done and result. first of all I recoded option called "RESET" which we can rest our calculations rest our process as we can reset our process either after we select the operation and either while we entered onr number also. i used a while loop and add all the operators in to it as only run program while return is true, then coded for "terminate " option and "reset option" cause some times we maybe have to reset all in this stage too. def select_op ( choice ): if ( choice == '#' ): return - 1 elif ( choice == '$' ): return 0 and when return -1 for choice its terminating and exiting from program if ( select_op ( choice ) == - 1 ): #program ends here print ( "Done. Terminating" ) ex...