title: Compare two lists in python - check only order
body: <p>I have two lists and I need to return true or false based on the comparision.
  I have below rules.</p>
  <ol>
  <li>Check for the element order, elements need not to be at the exact index</li>
  <li>There should be no extra non empty elements in the list</li>
  </ol>
  <blockquote>
  <p>Eg:<br />
  list1 ['a','b','','','d'] and list2 ['a','b','d'] - this should
  be true</p>
  <p>list1 ['a','b','','','d'] and list2 ['a','b','c','d'] - this should be
  false</p>
  <p>list1 ['a','b','d','',''] and list2 ['a','b','d','c'] - this should be
  false</p>
  <p>list1 ['a','b','d','',''] and list2 ['a','b','d',''] - this should be
  true</p>
  </blockquote>