split to list python code example
Example 1: python split list
string = 'this is a python string'
wordList = string.split(' ')
Example 2: python split string on char
>>> "MATCHES__STRING".split("__")
['MATCHES', 'STRING']
string = 'this is a python string'
wordList = string.split(' ')
>>> "MATCHES__STRING".split("__")
['MATCHES', 'STRING']