title: Replacing string in multidimensional Array
body: <p>I have this array which has 4 element each. And I want to replace the same element before with empty string.</p>
  <pre><code>arr1 = [
      [&quot;Ford&quot;, &quot;Fiesta&quot;, &quot;Manual&quot;, &quot;$ 120,000,000&quot;],
      [&quot;Ford&quot;, &quot;Fiesta&quot;, &quot;Manual&quot;, &quot;$ 134,000,000&quot;],
      [&quot;Ford&quot;, &quot;Fiesta&quot;, &quot;Automatic&quot;, &quot;$ 140,000,000&quot;],
      [&quot;Ford&quot;, &quot;Fiesta&quot;, &quot;Automatic&quot;, &quot;$ 150,000,000&quot;],
      [&quot;Ford&quot;, &quot;Focus&quot;, &quot;Manual&quot;, &quot;$ 330,000,000&quot;],
      [&quot;Ford&quot;, &quot;Focus&quot;, &quot;Manual&quot;, &quot;$ 335,000,000&quot;],
      [&quot;Ford&quot;, &quot;Focus&quot;, &quot;Manual&quot;, &quot;$ 350,000,000&quot;],
      [&quot;Ford&quot;, &quot;Focus&quot;, &quot;Automatic&quot;, &quot;$ 360,000,000&quot;],
      [&quot;VW&quot;, &quot;Golf&quot;, &quot;Manual&quot;, &quot;$ 350,000,000&quot;],
      [&quot;VW&quot;, &quot;Golf&quot;, &quot;Automatic&quot;, &quot;$ 370,000,000&quot;]
  ];
  </code></pre>
  <p>So the result would be like :</p>
  <pre><code>[
      [&quot;Ford&quot;, &quot;Fiesta&quot;, &quot;Manual&quot;, &quot;$ 120,000,000&quot;],
      [&quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;$ 134,000,000&quot;],
      [&quot;&quot;, &quot;&quot;, &quot;Automatic&quot;, &quot;$ 140,000,000&quot;],
      [&quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;$ 150,000,000&quot;],
      [&quot;&quot;, &quot;Focus&quot;, &quot;Manual&quot;, &quot;$ 330,000,000&quot;],
      [&quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;$ 335,000,000&quot;],
      [&quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;$ 350,000,000&quot;],
      [&quot;&quot;, &quot;&quot;, &quot;Automatic&quot;, &quot;$ 360,000,000&quot;],
      [&quot;VW&quot;, &quot;Golf&quot;, &quot;Manual&quot;, &quot;$ 350,000,000&quot;],
      [&quot;&quot;, &quot;&quot;, &quot;Automatic&quot;, &quot;$ 370,000,000&quot;]
  ];
  </code></pre>
  <p>I have tried to create new array which include all the unique element, and loop it and then append it into 3rd array</p>
  <pre><code>arr2 = [&quot;Ford&quot;, &quot;Fiesta&quot;, &quot;Focus&quot;, &quot;Manual&quot;, &quot;Automatic&quot;, &quot;VW&quot;, &quot;Golf&quot;],
  arr3 = []
  print('-----------------------------------')
  for x in arr1 :
    print(&quot;X[0] &quot;, x[0])
    print(&quot;X[1] &quot;, x[1])
    print(&quot;X[2] &quot;, x[2])
    print(&quot;X[3] &quot;, x[3])
    if(x[0] == arr1[0][0]):
      arr3.append(&quot;&quot;)
      if(x[1] == arr1[0][1]):
        arr3.append(&quot;&quot;)
        if(x[2] == arr1[0][2]):
          arr3.append(&quot;&quot;)
        if(x[2] != arr1[0][2]):
          arr3.append(x[2])
    arr3.append(x[3])
  </code></pre>
  <p>But my result only correct for the 2nd row :</p>
  <pre><code>['', '', '', '$ 120,000,000', 
  '', '', '', '$ 134,000,000', 
  '', '', 'Automatic', '$ 140,000,000', 
  '', '', 'Automatic', '$ 150,000,000', 
  '', '$ 330,000,000', '', '$ 335,000,000', 
  '', '$ 350,000,000', '', '$ 360,000,000', 
  '$ 350,000,000', '$ 370,000,000']
  </code></pre>
  <p>Can someone tell me where my mistake please? Thanks in Advance</p>