<

Question: assign single value to multiple variables

Is there a simple way to assign a single value to multiple variables?

just as an example, instead of labouriously entering a1:=5: a2:=5: a3:=5  ... a40:=5:

This way I present here doesn't work as I thought.

a:=[seq(a||i,i=1..40)]:

for ii in a do
  ii:=5:
end do:

a1;
                 a1

Any suggestions?

Please Wait...