solutions

Build a simple calculator using Object Oriented Programming.

This is the interface it should follow:

calculator = Calculator()

calculator.add(2, 4)  # 6
calculator.subtract(8, 1)  # 7
calculator.multiply(3, 5)  # 15
calculator.divide(5, 2)  # 2.5

Test Cases

tests

[]