drag to orbit · scroll to zoom
← Playground

✂️ The Splitter · split

A row of character blocks gets snipped apart at a separator into several strings.

Red block = one character
Input box
"a,b,c"
Press "Cut" to push the box into the knife
Python code
"a,b,c".split(",")
Output (a list)
—

💡 Note: the original "a,b,c" box is still there — strings are immutable. split just hands you a brand-new thing (a list).