Question: How can I produce a list with a for-loop?

Hello everyone! I'm pretty new to Maple and struggling with some basics.

 

I want to use a for-loop to print out the square numbers from 11 to 20. And the outputs should be presented within a list.

This is what I have so far:

|> for i from 11 to 20 do print(i^2) od;


                              121

                              144

                              169

                              196

                              225

                              256

                              289

                              324

                              361

                              400

But I don't know how I can put all these results in a list, so that in the end it looks like this:

L: = [121,144,169,196,225,256,289,324,361,400]

 

I'm grateful for every answer :)

 

 

Please Wait...