> 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) 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.