split for lists in python code example Example: python split list string = 'this is a python string' wordList = string.split(' ')