A
Q. What is the output of the following code?
Code:
def foo(fname, val):
print(fname(val))
foo(max, [1, 2, 3])
foo(min, [1, 2, 3])
print(fname(val))
foo(max, [1, 2, 3])
foo(min, [1, 2, 3])
- Correct Answer - Option(A)
- Views: 20
- Filed under category Python
- Hashtags:
Discusssion
Login to discuss.