create a program to represent how a given code is working in graphical form
def graph_function(function, x_range): xs = list(x_range) ys = [] for x in xs: ys.append(function(x)) import matplotlib.pyplot as plt plt.plot(xs,ys) plt.show() graph_function(lambda x: x**2, range(-100, 100))