Home
/
Python 3.11
/
Heapq
/
heappush
Python 3.0
Python 3.9
Python 3.11
Functions
ID
EN
…
Heapq
heappush
Python 3.11
Push the value item onto the heap, maintaining the heap invariant.
Syntax
PYTHON
Copy
heapq.heappush(heap, item)