1

What is the output of the following code? def foo(fname, val): print(fname(val)) foo(max, [1, 2, 3]) foo(min, [1, 2, 3])

Correct Answer: 3 1

Make the most of this question

This page focuses on one Python MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

Python MCQs MCQ: What is the output of the following code? def foo(fname, val): print(fname(val)) foo(max, [1, 2, 3]) foo(min, [1, 2, 3]) | Extra Education