Search for question
Question

5. Write a Python function that accepts a list of integer lists as an argument. The function should process the list of integer lists by transforming it into a list of sorted integer lists. To do so the function should sort each of its list elements (the individual integer lists) into ascending order. Once the individual integer list elements have all been sorted, the list of sorted integer lists should be sent back as a return value to the calling code. For example, if the list of integer lists [[4, 9, 2], [10, 5, 3, 9], [22, 11, 19, 5], [1, 2, 3]] was sent as an argument to the function, the list of sorted integer lists [[2, 4, 9], [3, 5, 9, 10], [5, 11, 19, 22], [1, 2, 3]] should be sent back as a return value to the calling code. Make sure to test your function from the main program of your Python file and print the result to ensure it works correctly.

Fig: 1