title: How do you find all connected sublists in a list? Python
body: <p>So let's say we have the list [2,2,3,4]</p>
  <p>Then how would you find all possible sublists that don't have any gaps in it</p>
  <p>The the outcome would be-</p>
  <pre><code>[]
  [2]
  [2]
  [3]
  [4]
  [2,2]
  [2,3]
  [3,4]
  [2,2,3]
  [2,3,4]
  [2,2,3,4]
  </code></pre>