Programming-Challenges/05 Extend Basic Function/exercise-01.py

9 lines
170 B
Python

def multiply_divide(a, b, z):
""" multiply a and b and divide by z """
return(a * b / z) # return the result
x = 15
y = 13
z = 5
print(multiply_divide(x, y, z))