title: Is it possible to save and access and search an array or list containing elements with different length in python?
body: <p>Is it possible to save and access array or list containing elements with different length? For instance, I want to save <code>data=[s,r,a,se]</code> r,a are scalar but <code>s</code> and <code>se</code> are an arrays with 4 elements.(in python language)</p>
  
  <p>For instance in one time:<code>(s,r,a,se)</code> are different in different times</p>
  
  <pre><code> s=[1,3,4,6] r=5 a=7 se=[11,12,13,14] 
   data=[s,r,a,se]=[[1,3,4,6],5,7,[11,12,13,14]]
  </code></pre>
  
  <p>How I can define the array containing them to be able to call them similar to the following code:</p>
  
  <pre><code>s=[data[0] for data in minibatch]
  r=[data[1] for data in minibatch]
  a=[data[2] for data in minibatch]
  se=[data[3] for data in minibatch]
  </code></pre>
  
  <p>Also, how I can extract (<strong>Find</strong>) that is there a special<code>[stest,rtest,atest,setest]</code> in <code>data</code> (<code>stest,setest</code> are with 4 elements)</p>
  
  <p><strong>For instance:</strong> I want to see can I find <code>[[1,2,3,4],5,6,[7,8,9,10]]</code>  in data which is something similar to:                                                  <code>[ [[1,2,3,4],5,6,[7,8,9,10]] ,[[...,...,...,...],...,...,  [...,...,...,...]], [[18,20,31,42],53,666,[27,48,91,120]]]</code>  </p>
  
  <p>If I did not find I append to it otherwise nothing is happened!</p>