The python function split()
by default splits your text on spaces. You can add separator inside, for example: task.split(',')
which means this function is going to split your text in list by commas.
solved how to print each value of list on next line in python [closed]