title: Trying to figure out why an empty string is appended to the list
body: <p>My program will compare two paragraphs and return similar lines in a list. So split every lines in a list and compared them. Similar lines are append to a list. However, the outcome includes an empty string. Please help me figure out where its coming from. </p>
  
  <pre><code>story1 = '''This is a story.
  This has multiple lines.
  All lines will be split.
  This is the last line.
  '''
  
  story2 = '''This is a new story.
  This has multiple lines.
  All lines will be split.
  This is the not last line.
  This is a story.
  '''
  
  lines1 = story1.split("\n")
  lines2 = story2.split("\n")
  similarities = []
  
  #print(lines1)
  #print(lines2)
  
  for line in lines1:
      if line in lines2:
          similarities.append(line)
  
  print(similarities)
  
  
  
  </code></pre>