Jun-19-2022, 04:46 PM
(This post was last modified: Jun-19-2022, 04:47 PM by XavierPlatinum.)
I'm rusty at this, but it looks like
Is that helpful?
string.split()
function is the what you are looking for. text = "bunch of stuff, other stuff" x = text.split(", ") print(x)output:
['bunch of stuff', 'other stuff']You get a list. You can refer to each part by index
text[0]
, text[1]
. Is that helpful?