split function i python code example
Example 1: python split string on char
>>> "MATCHES__STRING".split("__")
['MATCHES', 'STRING']
Example 2: how to split word in python
text= "I am Batman"
splitted_text= text.split()
Print(splitted_text)
>>> "MATCHES__STRING".split("__")
['MATCHES', 'STRING']
text= "I am Batman"
splitted_text= text.split()
Print(splitted_text)