Using str.split
only allows you to split a string by one character. If you want to split a string by multiple characters, use re.split().
re uses regrex to split the string.
Using str.split
only allows you to split a string by one character. If you want to split a string by multiple characters, use re.split().
re uses regrex to split the string.