import numpy as np import matplotlib.pyplot as plt a = np.linspace(0,10,1000) b = np.cos(a) plt.plot(a,b)
[<matplotlib.lines.Line2D at 0x7f57bb7164d0>]
import heapq a = [] b = [] heapq.heappush(a,5) heapq.heappush(b,a) print(a) print(b)
[5] [[5]]