Result Size:
625 x 571
demo_ref_string_split2.py:
txt = "hello, my name is Peter, I am 26 years old" x = txt.split(", ") print(x)
x
txt
=
"hello, my name is Peter, I am 26 years old"
x
=
txt
.
split
(
", "
)
print
(
x
)
C:\Users\My Name>python demo_string_split2.py
['hello', 'my name is Peter', 'I am 26 years old']