Python Quiz of the Day | Coding Challenge #291126 Can you identify…

Python Quiz of the Day | Coding Challenge #291126
Can you identify the output of this Python code?

import heapq

print(heapq.nlargest(2, [4, 9, 1, 7, 3]))

Test your understanding of Python's heapq module and its nlargest() function.

What will be the output?

A. [1, 3]
B. [9, 7]
C. [4, 9]
D. [7, 9]

Comment your answer below!

Find the correct answer with an explanation:
https://www.clcoding.com/2026/11/python-coding-challenge-id-291126.html
❤1
November 29, 2026 30