title: How I can turn into 4d array to 2d array in Python?
body: <pre><code>row=int(input("Number of rows for two dimensional list please:")) 
  print("Enter",row,"rows as a list of int please:")
  
  numbers = []
  for i in range(row):
      numbers.append(input().split())
  array=[0]*row
  for i in range(row):
      array[i]=[numbers]
  
  
  
  print(array)
  </code></pre>
  
  <h1>The program inputs are</h1>
  
  <pre><code>1 2 3
  4 5 6
  7 8 9
  </code></pre>
  
  <h1>This program output:</h1>
  
  <pre><code>[[[['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]], [[['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]], [[['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]]]
  </code></pre>
  
  <h1>How can I turn into this 2 dimensional array like this</h1>
  
  <pre><code>[[1, 2, 3], [4, 5, 6], [7, 8, 9]]
  </code></pre>