ADD Module#

add module

pmps.api.add.add(num1, num2)[source]#

Add up two integer numbers.

This function simply wraps the + operator, and does not do anything interesting, except for illustrating what the docstring of a very simple function looks like.

Parameters
  • num1 (int) – First number to add.

  • num2 (int) – Second number to add.

Returns

The sum of num1 and num2.

Return type

int

See also

subtract

Subtract one integer from another.

Examples

>>> add(2, 2)
4
>>> add(25, 0)
25
>>> add(10, -10)
0