title: Finding consecutive values within a list
body: <p>I have a list of values: </p>
  
  <pre><code>a = [1,3,4,5,2]
  </code></pre>
  
  <p>I now want the following function:</p>
  
  <pre><code>does_segment_exist(a, [1,3,4]) #True
  does_segment_exist(a, [3,4,5]) #True
  does_segment_exist(a, [4,5,2]) #True
  does_segment_exist(a, [1,4,5]) #False
  does_segment_exist(a, [1,3]) #True
  does_segment_exist(a, [1,4]) #False
  </code></pre>
  
  <p>So the values must be found in consecutive order.</p>
  
  <p>I there a clever way of doing this in Python 3?</p>