hey everyone,
if i have a list (or string) like this
data = [1,2,3,4,5,6,7,8 ,9,10,11,12,13, 14,15]
and i wanted to write it to my file (lets say its called fn) so that i appears like this with 5 points per row
1,2,3,4,5
6,7,8,9,10
11,12,13,14,15
how much I got about that? I'm begginign to understand how to do it just as a print option in the python interpreter but, i'm a little confused on how to tell pyton to write it in a certain format.
thanks
if i have a list (or string) like this
data = [1,2,3,4,5,6,7,8 ,9,10,11,12,13, 14,15]
and i wanted to write it to my file (lets say its called fn) so that i appears like this with 5 points per row
1,2,3,4,5
6,7,8,9,10
11,12,13,14,15
how much I got about that? I'm begginign to understand how to do it just as a print option in the python interpreter but, i'm a little confused on how to tell pyton to write it in a certain format.
thanks
Comment