I have the following vector:
a = [10, 10, 10, 10, 10, 20, 20, 20, 20, 20]
I need every 5 indexes to list them.
It would look like this:
b = [(10, 10, 10, 10, 10), (20, 20, 20, 20, 20)]
I think it's something simple, but I can not execute.
Could anyone help me?