I have extracted a set of data from HTML page and copied to a variable. The variable looks like
names='''
Apple
Ball
Cat'''
Now I like to join each line into a list so that I can access any line I want. Is there any way to do that in Python