Q. Consider the code below and answer the questions that follow:


def multiply(number1, number2) :

    answer = number1*number2

    print(number1, 'times', number2, '=', answer)

    return(answer)

output = multiply(5,5)


(i) When the code above is executed, what prints out?

(ii) What is variable output equal to after the code is executed?



Answer =

(i)

Output:-

5 times 5 = 25

(ii)

Variable is ‘answer’. And its value is 25.

5 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post