<prompt> Kuandika kazi ya kuchapisha nje ya 3 ya mwisho ya orodha Python.  <response>: Heres a simple function that takes a list as an argument and prints its last three elements:pythondef print_last_3_elementslst: if lenlst 3: printList has less than 3 elements else: printlst-3:Heres an example of how to use it:pythonmy_list 1, 2, 3, 4, 5, 6print_last_3_elementsmy_list Output: 4, 5, 6 