I'm new to Python coding and wondered if someone could give me the coding to plot these two graphs on the same program.
This is what I have so far, exactly as typed on Python, however I know that parts are incorrect.
from matplotlib import pyplot as plt
x = [float(i)/100 for i in range(0,101)]
y = [sin(x)]
plt.plot(x,y)
First, you need a larger range for $x$ to see a nice sinusoid, say from $0$ to $2\pi$. Second, specify $y$ as a list comprehension, too:
If you want to plot both graphs one over the other (what isn't generally a good idea because those 2 function are so different, that in the default settings the sine function will appear as to coincide with the x-axis), the code may be as follows (I extended the range for $x$, and set limits for $y$-axes):