Hackerss.com

Hackerss.com is a community of amazing hackers

Hackerss is a community for developers, data scientitst, ethical hackers, hardware enthusiasts or any person that want to learn / share their knowledge of any aspect of digital technology.

Create account Log in
hackerss
hackerss

Posted on

Python


def add(num1, num2):
    """
    Add up two integer numbers.

    Parameters
    ----------
    num1 : int
        First number to add.
    num2 : int
        Second number to add.

    Returns
    -------
    int
        The sum of ``num1`` and ``num2``.
    """

    #return the sum of the two numbers
    return num1 + num2

#example
result = add(8,15)
#output
print(result)  #23
Enter fullscreen mode Exit fullscreen mode

Top comments (0)