title: How to check if an ordered non-consecutive subsequence is in array? Python
body: <p>I'd be surprised if this hasn't been asked yet.</p>
  
  <p>Let's say I have an array <code>[5,6,7,29,34]</code> and I want to check if the sequence <code>5,6,7</code> appears in it (which it does). Order does matter.</p>
  
  <p>How would I do this?</p>