Python Adding symbol to each line

Adding symbol for every line via Python


lines = text.split('\n')

for i in range(len(lines)): # loop through all indexes for "lines" list

    lines[i] = '* ' + lines[i] # add star to each string in "lines" list

text = '\n'.join(lines)