demo_ref_string_split2.py:
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']