title: python list and sublist
body: <p>I have to check if list1 is contained in list2. It also should check if it appears in that order in the list as well. If it's true, it should return true and false if it doesn't.</p>
  
  <pre><code>def check(lst1, lst2):
  for x in lst1:
      for y in lst2:
          xx = lst1.sort()
          yy = lst2
          if xx != yy:
              return False
          else:
              return True
  </code></pre>
  
  <p>I'm confusing myself with the for loops and also, I don't know where to go from here to fix my code. Pointers please?</p>
  
  <p>example of what it should do:</p>
  
  <pre><code>  check([4,0],[9,1,4,6,8,9])
    True
    check([1,2],[2,3,1])
    False
  </code></pre>