Run
str = 'apple,,orange,,,grape' # Split string by , chunks = str.split(',') print(chunks)
Output