Skip to content

Glossary: Python Basics

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']`.

Where the book teaches it

Related terms

joinCSV