import matplotlib.pyplot as plt def drawGraph(xList, yList, marker): plt.plot(xList, yList, marker=marker) plt.show() xList = range(-10, 10+1) yList = [x**2 for x in xList] drawGraph(xList, yList, "o")
import matplotlib.pyplot as plt def drawGraph(xList, yList, marker): plt.plot(xList, yList, marker=marker) plt.show() xList = range(-10, 10+1) yList = [x**2 for x in xList] drawGraph(xList, yList, "o")