>>> txt = "hello, my name is Peter, I am 26 years old" >>> x = txt.split(", ") >>> print(x) ["hello", "my name is Peter", "I am 26 years old"]
txt = "welcome to the jungle" x = txt.split() print(x)