string = "apple,banana,cherry" parts = string.split(",") print(parts) # ['apple', 'banana', 'cherry']