Posts by Thiago Mata • 124 points
1 post
-
0
votes1
answer320
viewsA: Sum indices of a vector respecting condition
I believe that the best thing for Voce would be to transform the array into a 2-dimensional array and then add the pairs together. An example using numpy: import random import numpy as np # tamanho…
python-2.7answered Thiago Mata 124