Make sure to create an init.py file for the Restart_Function module.
The calculator unfortunately does not take fraction values so try to convert your fractions into decimals before using the calculator. (You could also convert the fractions to decimals through the simple calculator.)
The calculator takes two numbers, with an operator as well. (+, -, *, /, or ^)
This calculator can also process negative numbers.
https://www.tutorialspoint.com/basic-calculator-program-using-java I got the idea from this website. I actually barely looked at the tutorial and just got the idea of the simple calculator off it.
Changes made:
- Used an if/else function instead
- Originally I coded it in Java, converted it to Python by learning if/else
- Learnt functions and exceptions so I modded my old calculator to use those
- Another if else operator added
- Added parameters in my function
- Added module
- Added class
- Added while loops, user can restart
- Added try except but implementing while loops
- Added more functions