title: Get input from user and create 2D array
body: <p>I want to take input from user and create 2D array the way that the user inputs values in two lines. First user define values separated by spaces then hits enter and gives another values also separated the spaces as shown below on example:</p>
  <p>Give values:</p>
  <pre><code>2 3 4
  5 6 7
  </code></pre>
  <p>variable should have this at the end:</p>
  <pre><code>[[2, 3, 4], [5, 6, 7]]
  </code></pre>
  <p><strong>Another example:</strong></p>
  <p>Give values:</p>
  <pre><code>1 2
  3 4
  </code></pre>
  <p>variable should have this at the end:</p>
  <pre><code>[[1, 2], [3, 4]]
  </code></pre>