This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def split(string, delimiter): | |
""" | |
Desc: Python's split function implementation | |
:param string: a string | |
:return: a list after breaking string on delimiter match | |
""" | |
result_list = [] | |
if not delimiter: | |
raise ValueError("Empty Separator") |