#create a function that multiplies 5 numbers
def multiply(num1, num2, num3, num4, num5):
"""
Multiply 5 numbers.
Parameters
----------
num1 : int
First number to multiply.
num2 : int
Second number to multiply.
num3 : int
Third number to multiply.
num4 : int
Fourth number to multiply.
num5 : int
Fifth number to multiply.
Returns
-------
int
The product of ``num1``, ``num2``, ``num3``, ``num4``, and ``num5``.
"""
#return the product of the 5 numbers
return num1 * num2 * num3 * num4 * num5
#example
result = multiply(8,15,3,5,7)
#output
print(result) #1728
For further actions, you may consider blocking this person and/or reporting abuse
Oldest comments (0)