maths package

Submodules

maths.add module

maths.add.add_nums(num1, num2)[source]

This method will be used to add two numbers

Parameters
  • num1 (int) – The first number

  • num2 (int) – The second number

Returns

The sum of two numbers

Return type

int

maths.divide module

maths.divide.divide_nums(num1, num2)[source]

This method will be used to divide num1 by num2

Parameters
  • num1 (int) – The first number

  • num2 (int) – The second number

Returns

The answer

Return type

int

maths.multiply module

maths.multiply.multiply_nums(num1, num2)[source]

This method will be used to multiply two numbers

Parameters
  • num1 (int) – The first number

  • num2 (int) – The second number

Returns

The product of two numbers

Return type

int

maths.subtract module

maths.subtract.subtract_nums(num1, num2)[source]

This method will be used to subtract num2 from num1

Parameters
  • num1 (int) – The first number

  • num2 (int) – The second number

Returns

The answer

Return type

int

Module contents