string = 'this is a python string' wordList = string.split(' ')
# Basic syntax: string.split("text_to_split_by") # Example usage: text = "this|is|an|example" print(text.split("|")) --> ['this', 'is', 'an', 'example']
txt = "welcome to the jungle" x = txt.split() print(x)