A quick way to make a copy of an array (as opposed to assigning a variable with another reference to the original array) is:
arr[:]
Let's examine the syntax. [:] means that start, end, and slice are all omitted. They default to 0, len(arr), and 1, respectively, meaning that subarray that we are ...