<prompt> 1,3,4,2,9,7,8Kujenga programu ya partition orodha ya namba katika nusu mbili sawa.  <response>: Heres a Python program to partition a list of numbers into two equal halves:pythondef partition_listnumbers: Sort the list of numbers numbers.sort Find the length of the list of numbers and divide by 2 to determine the middle point middle lennumbers 2 Split the list into two equal halves using list slicing first_half numbers:middle second_half numbersmiddle: Print the two halves printFirst half:, first_half printSecond half:, second_halfInput: list of numbersnumbers 1,3,4,2,9,7,8Call the function with list of numbers as argumentpartition_listnumbers Output:First half: 1, 2, 3, 4Second half: 7, 8, 9 