How to Solve Python ValueError: empty separator

If you pass an empty string to the str.split() method, you will raise the ValueError: empty separator. If you want to split a string into characters you can use list comprehension or typecast the string to a list using list(). def split_str(word): return [ch for ch in...