Question: python please.need to get formatting right Write a function called compare_sorts_worst case(steps) which takes a list of integers as a parameter and produces a summary

python please.need to get formatting right
Write a function called compare_sorts_worst case(steps) which takes a list of integers as a parameter and produces a summary of the number of comparisons and swaps that are required to sort a list of descending integers using Bubble Sort, Selection Sort and Insertion Sort (i.e. the worst case scenario). The table is formatted as follows: Each column has a width of 10 characters, and the content of the column is aligned to the right edge of that column The columns are separated with a "T"(.e. ). The first column of the table shows the number of integers used in the sorting algorithm, and has a column header N. For example, if the value is 8, the numbers you should use for the list are: [8,7,6,5,4,3,2,1] The second and third columns of the table show the number of comparisons and swaps respectively in the bubble sort algorithm and has the column header BUB COMP and BUB SWAP respectively. The fourth and fifth columns of the table show the number of comparisons and swaps respectively in the selection sort algorithm and has the column header SEL COMP and SEL SWAP respectively. The sixth and seventh columns of the table show the number of comparisons and swaps respectively in the insertion sort algorithm and has the column header INS COMP and INS SWAP respectively. The second row of the table has a horizontal line of '-' characters. Note: you may not use Python's built in sort() or sorted() functions. Copy the insertion_sort(), bubble_sort(), selection_sort() function defined in the previous lab. For example: Test Result compare_sorts_worst case([1,2,4,8]) NI BUB COMP BUB SWAP SEL COMP SEL SWAP INS COMP INS SWAP 11 21 4 81 0 1 11 6 281 0 11 61 281 01 11 61 28 01 11 31 71 01 11 61 281 01 11 61 281 1 def compare_sorts_worst_case(steps): 2 names = ['N', 'BUB COMP', 'BUB SWAP', 'SEL COMP', 'SEL SWAP', 'INS COMP', 'INS SWAP'] 3 for value in names: 4 print(value,"I", end=" ") 5 print) 6 print("-"*77) 7 for n in steps: 8 C_S = (n-1)*n//2 sel_swp = n-1 10 11 12 print("{:01d}".format(n),x, end=" ") 13 print("{:02d}".format(cs),x, end="" 14 print("{:02d}" format(c_s),x, end=" ") 15 print("{:02d}".format(c_s),x, end=" 16 print("{:02d}".format(sel_swp),x, end=" ") 17 print("{:02d}".format(c_s),x, end=" ") 18 print("{:02d}".format(c_s),x) 19 20 Precheck Check Expected Got NI BUB COMP BUB SWAP SEL COMP SEL SWAP INS COMP| INS SWAPI N | BUB COMP | BUB SWAP | SEL COMP | SEI 1 21 41 81 0 1 1 61 281 0 1 1 6 28 0 1 61 28 0 1 11 31 71 01 1] 61 28 0|1 | 00 11 21 01 | 614 | 06 | 281 828 001 0000 00 001 01 | 01 | 01 | 01 | 01 | 06 06 03 06 06 28 | 28 | 07 | 28 | 28