I have written this code without the build in libraries of python
class Minheap(): def __init__(self,l,n): self.size = n self.heap = l