title: Print an array in the range of a user input
body: <p>Below is my code:</p>
  
  <pre><code> n = int(input())
  
   for i in range(n):
  
      d = int(input())
  
      for i in range(d):
          a = list(map(int,input().split()))
      print(a)
  </code></pre>
  
  <p>But I want my code to do this, for example:
  Suppose <code>d = 4</code> is my user input
  Now, I want (random example) <code>a = [1, 4 , 8, 19]</code>. That too from user input.
  This is an example of the output of. I am not able to frame the question properly. So, here is the  desired output:</p>
  
  <p>3 #input for n</p>
  
  <p>2 #input for d</p>
  
  <p>[4,6] #output for a</p>
  
  <p>5 #input for 2nd d</p>
  
  <p>[4,2,1,4,7] #output for a, 5 elements as d = 5</p>
  
  <p>2 #input for last d, as 'n' was 3</p>
  
  <p>[1,9] #(the last array a)</p>