split list based on string python code example Example: python split list string = 'this is a python string' wordList = string.split(' ')