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.
ok
ReplyDeletePlease explain me about answer (ii)
ReplyDeleteFunction returning value of 'answer' variable.
DeletePlease enable dark mode
ReplyDeleteOK, I will try it.
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )