Sumar 3 numeros - Python:
def add(num1, num2, num3):
"""
Add up three integer numbers.
Parameters
----------
num1 : int
First number to add.
num2 : int
Second number to add.
num3 : int
Third number to add.
Returns
-------
int
The sum of ``num1``, ``num2`` and ``num3``.
"""
#return the sum of the three numbers
return num1 + num2 + num3
#example
result = add(88, 22, 11)
#output
print(result) #110
Oldest comments (0)