LogiQuest
Back to Heaps
18

What is the output of the following code?

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

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.