Python Calculator
A command-line calculator that reads two numbers and an operator, then prints the result.
- Variables
- Input
- Conditions
- Functions
Milestones and next steps
- 1Read two numbers from the user
- 2Add the four basic operations
- 3Handle division by zero
- 4Wrap each operation in a function
- 5Loop until the user quits
Go further
- + Add powers and square roots
- + Keep a history of calculations
Prepare with