how to separate two words in a string in python code example Example: python split string on char >>> "MATCHES__STRING".split("__") ['MATCHES', 'STRING']