p {margin: 25px 50px 75px 100px;}
def insertion_sort(arr):What is the output of the following python programfor i in range(1, len(arr)):key = arr[i]j = i-1while j = 0 and key arr[j] :arr[j + 1] = arr[j]j -= 1arr[j + 1] = keyarr = [5,3,7,1,9,4,6,2,8,0]insertion_sort(arr)print("Sorted array is:", arr)