104k views
1 vote
PLEASE HURRY!!
Look at the image below

PLEASE HURRY!! Look at the image below-example-1

1 Answer

1 vote

Answer:

Second part:

answer = multiply(8, 2)

First part:

def multiply(numA, numB):

return numA * numB

Third part:

print(answer)

Step-by-step explanation:

When creating a function, we always start with def function_name(): so the code for the first line is:

def multiply(numA, numB):

return numA * numB ( * symbol refers to multiplication)

We are now left with two pieces of code: answer = multiply(8, 2) and print(answer). Since we need to always define a variable before using it, answer = multiply(8, 2) will come before print(answer).

Resulting Code:

def multiply(numA, numB): <- first part

return numA * numB

answer = multiply(8, 2) <- second part

print(answer) <- third part

Hope this helps :)

User BKK
by
3.9k points