<prompt> Kupata idadi kubwa Kupata idadi ndogo Linganisha idadi mbiliKutokana na orodha ya maelekezo, kuandika kazi kwa kutumia lugha ya programu  <response>: Here is an example function in Python that takes in a list of numbers, finds the largest and smallest numbers from the list, and compares them:pythondef compare_numbersnumbers: largest maxnumbers smallest minnumbers if largest smallest: printThe largest and smallest numbers are equal:, largest else: printThe largest number is:, largest printThe smallest number is:, smallestHeres how to can use the function:pythonnumbers 1, 3, 5, 8compare_numbersnumbers Output: The largest number is: 8 The smallest number is: 1 