I'm having some trouble trying to create this.
I have the following lists:
values = [(3, 50), (4, 20), (10, 30), (11, 60), (12, 70), (13, 20)]
lens = [2,4]
What I want to do is to generate another list of sublists knowing the exact length of each sublist, so the output would be this one:
result = [[(3, 50), (4, 20)], [(10, 30), (11, 60), (12, 70), (13, 20)]]
Thank you very much!