Python - Methods and Behavior Definition
What is the output of this code?
def multiply(x, y):
return x * y
result = multiply(3, 4)
print(result)def multiply(x, y):
return x * y
result = multiply(3, 4)
print(result)multiply returns the product of 3 and 4, which is 12.result stores 12, so print(result) outputs 12.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions