There was an error while loading. Please reload this page.
1 parent dda416b commit 034b625Copy full SHA for 034b625
1 file changed
strings/split.py
@@ -16,6 +16,9 @@ def split(string: str, separator: str = " ") -> list[str]:
16
17
>>> split(";abbb;;c;", separator=";")
18
['', 'abbb', '', 'c', '']
19
+
20
+ >>> split("--a--b--c--", separator="--")
21
+ ['', 'a', 'b', 'c', '']
22
"""
23
24
if len(separator) != 1:
0 commit comments