nums = [100,20,30,90]
temp_arr = nums
answer = 0
print(nums, temp_arr)
def insertionSort(arr):
    for i in range(1, len(arr)):
        key = arr[i] 
        j = i-1
        while j >= 0 and key < arr[j] :
                arr[j + 1] = arr[j]
                j -= 1
        arr[j + 1] = key
 
insertionSort(temp_arr)
print(nums, temp_arr)
Idk why the array nums is getting sorted when im only trying to sort the temp_arr
 
     
    