from heapq import *from random import shuffledata = range(10)shuffle(data)heap = []for n in data: heappush(heap, n)print heapheappush(heap, 0.5)print heap