Python Program to Determine Population and Plot a Graph
import matplotlib.pyplot as plt e=2.718 def size_of_population(t): return (15000*(1+t))/(15+e) t=[0,1,2,3,4,5,6,7,8,9,10] p=[] for i in t: p.append(size_of_population(i)+1000) plt.plot(t,p) plt.axis([0, max(t)+2, 0, max(p)+2]) plt.xlabel('Time') plt.ylabel('Population') plt.show()