Question: Help me fix this python code. What would be the correct way to write this python code. CPSC 207 Ex Fall 2017 aun 1, Page
Help me fix this python code. What would be the correct way to write this python code. CPSC 207 Ex Fall 2017 aun 1, Page 6/6 by the following program as aup po ed to plot a f netion /(z) on the interval-S f(z) is defined 5 Here is what the output should look li Part of the program is already written below. Your job is to fill in the rest. iport matplotlib.pyplot as plt numburs input ("Enter a number:") def plot-function(); nice xlist y.list 0 x =-5 for X in range (-5,lo,): print ( sin(x)) t xJlis y.lbt -4 Nd else: print(s print(x) Plot Suncthion () plt.plot(x.list,ylist) plt.shou(O
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
