split
Also written: .split()
A string method that cuts text into a list of pieces at the text you give it, or at spaces if you give nothing. `"coffee,mug".split(",")` gives `['coffee', 'mug']`.
Also written: .split()
A string method that cuts text into a list of pieces at the text you give it, or at spaces if you give nothing. `"coffee,mug".split(",")` gives `['coffee', 'mug']`.