Calculator

The module calculator.py provides four methods that perform very basic mathematical functions.

1. sum(x, y)

This adds two numbers and returns their sum.

2. subtract(x, y)

This subtracts y from x and returns the result.

3. multiply(x, y)

This returns the product of x and y.

4. divide(x, y)

This returns the quotient of two numbers.