(self)
return self.heap[0].item
Return the item with the lowest priority. The queue is unchanged.
Return the item with the lowest priority. The queue is unchanged.
Return the item with the lowest priority . The queue is unchanged .
def peek(self):
        """
        Return the item with the lowest priority. The queue is unchanged.
        """
        return self.heap[0].item
def peek ( self ) : return self . heap [ 0 ] . item