Vai al contenuto

Codice

Documentazione del codice

Qui documentiamo le funzioni

myapp.test.utils.sum_numbers(num1, num2)

Sum 2 int numbers and obtain a result

Parameters:

Name Type Description Default
num1 int

the first number you want to sum

required
num2 int

the second number you want to sum

required

Returns:

Name Type Description
result int

the sum of the two numbers

Source code in myapp/test/utils.py
def sum_numbers(num1: int, num2: int) -> int:
    """Sum 2 int numbers and obtain a result

    Args:
        num1 (int): the first number you want to sum
        num2 (int): the second number you want to sum

    Returns:
        result (int): the sum of the two numbers
    """
    return num1 + num2