Let's say I have the following main_list that contains other small_lists:
main_list = [[0, 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11]]
I want to find the small_list knowing the index 0 and 1 of the small_lists. So for instance, how can I create a getlist() function such that:
getlist(4,5) = [4, 5, 6, 7]
getlist(0,1) = [0, 1, 2, 3]
getlist(5,5) = None
getlist(9,10) = None