Skip to content

math

The module contains the following functions:

  • mul(a, b) - Returns the product of two numbers.

mul(a, b)

Multiply two integers

Examples:

>>> mul(2, 3)
6

Parameters:

Name Type Description Default
a int

First integer

required
b int

Second integer

required

Returns:

Name Type Description
int int

product of the two parameter integers

Source code in pypoetry_template/math.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
def mul(a: int, b: int) -> int:
    """
    Multiply two integers

    Examples:
        >>> mul(2, 3)
        6

    Args:
        a (int): First integer
        b (int): Second integer

    Returns:
        int: product of the two parameter integers
    """
    return a * b