Hello
I am starting to use pylab/numpy/scipy instead of MATLAB.
I now have a real beginners question (I think it is not really related to numpy)
I have a two-dimensional array
a=[[1,2,3],[4, 5, 6],[7,8,9]]

Is there a simple way to turn it into a multiline string ?

That is, turn a into:
s='''1 2 3 \n 4 5 6 \n 7 8 9'''

Thanks
Eli
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to