How to split value where is comma ?
D'Arcy J.M. Cain
darcy at Vex.Net
Wed Sep 7 22:54:44 EDT 2016
On Wed, 7 Sep 2016 16:04:40 +0000
Joaquin Alzola <Joaquin.Alzola at lebara.com> wrote:
> > where is a comma there should start new line ... How can i do it ?
>
> Use the split
>
> a.split(",")
> for x in a:
> print(x)
Seems overly complex.
print(a.replace(',', '\n'))
> This email is confidential and may be subject to privilege. If you
> are not the intended recipient, please do not copy or disclose its
> content but contact the sender immediately upon receipt.
Do you realize how stupid it is to put this on a message sent all around
the world?
--
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:darcy at Vex.Net
VoIP: sip:darcy at Vex.Net
More information about the Python-list
mailing list