print or write on a text file ?

nn pruebauno at latinmail.com
Mon Oct 1 13:22:14 EDT 2012


On Sep 28, 2:42 pm, Franck Ditter <fra... at ditter.org> wrote:
> Hi !
> Here is Python 3.3
> Is it better in any way to use print(x,x,x,file='out')
> or out.write(x) ? Any reason to prefer any of them ?
> There should be a printlines, like readlines ?
> Thanks,
>
>     franck

There is

out.writelines(lst)



More information about the Python-list mailing list