plot where y = x**2 for x over the interval 1 to 5, properly labelled
Create a histogram where the mean = 0, std. dev. = 1, n = 300, and there are sqrt(n) bins
Create a line plot of your choosing with an appropriate legend which displays the formula of the curve depicted.
The formula should be formatted using TeX syntax to create a professional presentation.
TypeError Traceback (most recent call last)
<ipython-input-27-b734c710
6
7 x_vals = (1, 2, 3, 4, 5)
----> 8 y_vals = (x_vals**2)
9
10 plt.plot(x_vals, y_vals)
TypeError: unsupported operand type(s) for ** or pow(): 'tuple' and 'int'
I dont get why this is showing as an error?