Items tagged with single single Tagged Items Feed

have a list of lists, and I would like to write each of these lists on a separate file, *on a single line*.

For instance consider the following trivial example:

P := [[-.3819660120, .6180339880, -10000, -2], [.6180339880, 1.618033988, -10000, -1], [1.618033988, 10000, -10000, -.5], [2.618033988, 10000, -.5, -0.1e-3], [2.618033988, 10000, 0.1e-3, .5]]

I would like to create
 + a file named  P1.dat containing the line
     ...

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?

Page 1 of 1