title: Replace the last element in a list with another list
body: <p>For example I have two arrays a <code>array1</code> and <code>array2</code></p>
  
  <pre><code>array1 = ['A', 'B', 'C', 'D', 'E', 'F',]
  array2 = ['G', 'H', 'I',]`
  </code></pre>
  
  <p>Now I want the output as</p>
  
  <pre><code>array1 = ['A', 'B', 'C', 'D', 'E', 'G', 'H', 'I',]
  </code></pre>
  
  <p>How can I do this in python</p>