How do i split a string by a delimiter in python?

Example:

text = 'apple,banana,cherry'
fruits = text.split(',')
Use the `split()` method of a string to divide it into a list of substrings based on a delimiter.

Beginner's Guide to Python