Run »
txt = "apple, banana, cherry" x = txt.rsplit(", ") print(x)
['apple', 'banana', 'cherry']