Home / Engineering / Problem Solving and Python Programming / Question

M

Mr. Dubey • 51.17K Points
Coach

Q.) print(maximum(2, 3))

(A) 2
(B) 3
(C) the numbers are equal
(D) none of the mentioned
Correct answer : Option (B) - 3

Explanation:
 the maximum function returns the maximum of the parameters, in this case the numbers supplied to the function. it uses a simple if..else statement to find the greater value and then returns that value.

Share

Discusssion

Login to discuss.