title: Checking if list is a sublist
body: <p>I need to check if list1 is a sublist of list2 (True; if every integer in list2 that is common with list1 is in the same order of indexes as in list1)</p>
  
  <pre><code>def sublist(lst1,lst2):
      for i in range(len(lst1)):
          if lst1[i] not in lst2:
              return False
          for j in range(len(lst2)):
              if (lst1[j] in lst2) and (lst2.index(lst1[i+1]) &gt; lst2.index(lst1[i])):
                  return True
  </code></pre>
  
  <p>Can anybody help me... why isn't this working?</p>