Is there a way to append/extend a list with another list at a specific index in python? <p>In other words, I want to accomplish something like the following:</p> <pre><code>a = [1, 2, 3, 7, 8] b = [4, 5, 6] # some magic here to insert list b into list a at index 3 so that a = [1, 2, 3, 4, 5, 6, 7, 8] </code></pre>