split a list on character code example
Example 1: how to split a string into a list of characters in python
list("python")
#output ["p", "y", "t", "h", "o", "n"]
Example 2: list split to string
# instead of regular split
>> s = "a,b,c,d"
>> s.split(",")
>> ['a', 'b', 'c', 'd']
# ..split only on last occurrence of ',' in string:
>>> s.mysplit(s, -1)
>>> ['a,b,c', 'd']