+ 1

How to split a string by new line in python

4th Feb 2018, 2:04 PM
Lasath Randika
Lasath Randika - avatar
3 Respostas
+ 2
l=myString.split("\n")
4th Feb 2018, 2:15 PM
michal
+ 1
print(“line 1\nline 2”) Output: line 1 line2 “\n” makes a new line.
4th Feb 2018, 2:11 PM
Jacob Pembleton
Jacob Pembleton - avatar
0
thanks😍😍
5th Feb 2018, 1:45 AM
Lasath Randika
Lasath Randika - avatar