First time here? Check out the FAQ!
answered 2 years ago
Here, you want this instead:
myplot = lambda r: plot(x^r, (x, -1, 1))
Then you can do:
myplot(3)
to get the plot of x↦x3.