1 | initial version |
Here is one example.
f(n)=n^2
list_plot([f(i) for i in range(10)])
But there are many, many ways to do this. For instance, if you are plotting a function that returns an ordered pair, then this might be appropriate.
f(n)=(n,2*n)
points([f(i) for i in range(10)],marker='^')