Please enable JavaScript.
Coggle requires JavaScript to display documents.
Working with text in Python, Splitting strings - Coggle Diagram
-
Splitting strings
split() once paired with a given string this will split based on a given delimiter and maximum iterations (default is a shitespace delimiter if not specified) - For example mystring.split("|", 5)
-
partition() is similar to split() however returns a tuple, when supplied with a separator it will return the part before it, the separator followed by the rest of the string.
-
-