0
I have the following vector:
a = [10, 10, 10, 10, 10, 20, 20, 20, 20, 20]
I need every five indexes to form a list of these elements.
You’d look like this:
b = [(10, 10, 10, 10, 10), (20, 20, 20, 20, 20)]
I believe it is something simple, but I’m not able to execute.
Could someone help me?
Leave the code for us to see
– ayelsew
I have no code, only the indicated vector a = [10, 10, 10, 10, 10, 20, 20, 20, 20, 20, 20, 20]
– Danilo