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 correctHelp 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!