title: Searching values of a list in another List using Python
body: <p>I'm a trying to find a sublist of a list. Meaning if list1 say [1,5] is in list2 say [1,4,3,5,6] than it should return True. What I have so far is this:</p>
  
  <pre><code>for nums in l1:
      if nums in l2:
          return True
      else:
          return False
  </code></pre>
  
  <p>This would be true but I'm trying to return True only if list1 is in list2 in the respective order. So if list2 is [5,2,3,4,1], it should return False. I was thinking along the lines of comparing the index values of list1 using &lt; but I'm not sure.</p>